public final class BBEncoder extends AbstractEncoder
| Constructor and Description |
|---|
BBEncoder(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
beginSize16() |
int |
beginSize32() |
int |
beginSize8() |
ByteBuffer |
buffer() |
protected void |
doPut(byte b) |
protected void |
doPut(ByteBuffer src) |
void |
endSize16(int pos) |
void |
endSize32(int pos) |
void |
endSize8(int pos) |
void |
init() |
int |
position() |
protected void |
put(byte[] bytes) |
ByteBuffer |
segment() |
ByteBuffer |
underlyingBuffer() |
void |
writeBin128(byte[] byteArray)
The bin128 type consists of 16 consecutive octets of opaque binary data.
|
void |
writeBin128(UUID id) |
void |
writeDouble(double aDouble)
The double type encodes a double precision 64-bit floating point number.
|
void |
writeFloat(float aFloat)
The float type encodes a single precision 32-bit floating point number.
|
void |
writeInt16(short aShort)
The int16 type is a signed integral value encoded using a 16-bit two's complement representation in network byte order.
|
void |
writeInt32(int anInt)
The int32 type is a signed integral value encoded using a 32-bit two's complement representation in network byte order.
|
void |
writeInt64(long aLong)
The int64 type is a signed integral value encoded using a 64-bit two's complement representation in network byte order.
|
void |
writeInt8(byte aByte)
The int8 type is a signed integral value encoded using an 8-bit two's complement representation.
|
void |
writeUint16(int s)
The uint16 type is a 16-bit unsigned integral value encoded in network byte order.
|
void |
writeUint32(long i)
The uint32 type is a 32-bit unsigned integral value encoded in network byte order.
|
void |
writeUint64(long l)
The uint64 type is a 64-bit unsigned integral value encoded in network byte order.
|
void |
writeUint8(short b)
The uint8 type is an 8-bit unsigned integral value.
|
put, put, writeArray, writeArrayEntries, writeByteRanges, writeDatetime, writeList, writeListEntries, writeMap, writeMapEntries, writeSequenceNo, writeSequenceSet, writeStr16, writeStr8, writeStruct, writeStruct32, writeUuid, writeVbin16, writeVbin32, writeVbin8public void init()
public ByteBuffer segment()
public ByteBuffer buffer()
public int position()
public ByteBuffer underlyingBuffer()
protected void doPut(byte b)
doPut in class AbstractEncoderprotected void doPut(ByteBuffer src)
doPut in class AbstractEncoderprotected void put(byte[] bytes)
put in class AbstractEncoderpublic void writeUint8(short b)
EncoderwriteUint8 in interface EncoderwriteUint8 in class AbstractEncoderb - the unsigned integer to be encoded.public void writeUint16(int s)
EncoderwriteUint16 in interface EncoderwriteUint16 in class AbstractEncoders - the unsigned integer to be encoded.public void writeUint32(long i)
EncoderwriteUint32 in interface EncoderwriteUint32 in class AbstractEncoderi - the unsigned integer to be encoded.public void writeUint64(long l)
EncoderwriteUint64 in interface EncoderwriteUint64 in class AbstractEncoderl - the unsigned integer to be encoded.public int beginSize8()
beginSize8 in class AbstractEncoderpublic void endSize8(int pos)
endSize8 in class AbstractEncoderpublic int beginSize16()
beginSize16 in class AbstractEncoderpublic void endSize16(int pos)
endSize16 in class AbstractEncoderpublic int beginSize32()
beginSize32 in class AbstractEncoderpublic void endSize32(int pos)
endSize32 in class AbstractEncoderpublic void writeDouble(double aDouble)
EncoderaDouble - the double to be encoded.public void writeInt16(short aShort)
EncoderaShort - the integer to be encoded.public void writeInt32(int anInt)
EncoderanInt - the integer to be encoded.public void writeInt64(long aLong)
EncoderaLong - the integer to be encoded.public void writeInt8(byte aByte)
EncoderaByte - the integer to be encoded.public void writeBin128(byte[] byteArray)
EncoderbyteArray - the bytes array to be encoded.public void writeBin128(UUID id)
public void writeFloat(float aFloat)
EncoderaFloat - the float to be encoded.Copyright © 2006–2018 The Apache Software Foundation. All rights reserved.