Java org.apache.cassandra.utils ByteBufferUtil fields, constructors, methods, implement or subclass

Example usage for Java org.apache.cassandra.utils ByteBufferUtil fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.cassandra.utils ByteBufferUtil.

The text is from its open source code.

Field

Method

ByteBufferbytes(String s)
Encode a String in a ByteBuffer using UTF_8.
ByteBufferbytes(byte b)
ByteBufferbytes(short s)
ByteBufferbytes(int i)
ByteBufferbytes(long n)
ByteBufferbytes(float f)
ByteBufferbytes(double d)
ByteBufferbytes(InetAddress address)
ByteBufferbytes(UUID uuid)
ByteBufferbytes(String s, Charset charset)
Encode a String in a ByteBuffer using the provided charset.
StringbytesToHex(ByteBuffer bytes)
ByteBufferclone(ByteBuffer buffer)
intcompare(byte[] o1, ByteBuffer o2)
intcompare(ByteBuffer o1, byte[] o2)
intcompareUnsigned(ByteBuffer o1, ByteBuffer o2)
byte[]getArray(ByteBuffer buffer)
You should almost never use this.
ByteBufferhexToBytes(String str)
InputStreaminputStream(ByteBuffer bytes)
byte[]readBytes(DataInput in, int length)
ByteBufferreadBytes(ByteBuffer bb, int length)
ByteBufferreadWithShortLength(DataInput in)
Stringstring(ByteBuffer buffer)
Decode a String representation.
Stringstring(ByteBuffer buffer, Charset charset)
Decode a String representation.
doubletoDouble(ByteBuffer bytes)
inttoInt(ByteBuffer bytes)
Convert a byte buffer to an integer.
longtoLong(ByteBuffer bytes)