FrameWriterBuffer

Undocumented in source.

Constructors

this
this()

Creates a new WritableBuffer with default capacity.

this
this(int capacity)

Create a new WritableBuffer with the given capacity.

Members

Functions

array
byte[] array()
Undocumented in source. Be warned that the author may not have intended to support it.
arrayOffset
int arrayOffset()
Undocumented in source. Be warned that the author may not have intended to support it.
ensureRemaining
void ensureRemaining(int requiredRemaining)

Ensures the the buffer has at least the requiredRemaining space specified. <p> The internal buffer will be doubled if the requested capacity is less than that amount or the buffer will be expanded to the full new requiredRemaining value.

hasRemaining
bool hasRemaining()
Undocumented in source. Be warned that the author may not have intended to support it.
limit
int limit()
Undocumented in source. Be warned that the author may not have intended to support it.
position
int position()
Undocumented in source. Be warned that the author may not have intended to support it.
position
void position(int position)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(byte b)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(byte[] src, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(ByteBuffer payload)
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(ReadableBuffer payload)
Undocumented in source. Be warned that the author may not have intended to support it.
putDouble
void putDouble(double value)
Undocumented in source. Be warned that the author may not have intended to support it.
putFloat
void putFloat(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
putInt
void putInt(int value)
Undocumented in source. Be warned that the author may not have intended to support it.
putLong
void putLong(long value)
Undocumented in source. Be warned that the author may not have intended to support it.
putShort
void putShort(short value)
Undocumented in source. Be warned that the author may not have intended to support it.
remaining
int remaining()
Undocumented in source. Be warned that the author may not have intended to support it.
transferTo
int transferTo(ByteBuffer target)

Copy bytes from this buffer into the target buffer and compacts this buffer. <p> Copy either all bytes written into this buffer (start to current position) or as many as will fit if the target capacity is less that the bytes written. Bytes not read from this buffer are moved to the front of the buffer and the position is reset to the end of the copied region.

Static variables

DEFAULT_CAPACITY
int DEFAULT_CAPACITY;
Undocumented in source.

Variables

_array
byte[] _array;
Undocumented in source.
_position
int _position;
Undocumented in source.

Inherited Members

From WritableBuffer

put
void put(byte b)
Undocumented in source.
putFloat
void putFloat(float f)
Undocumented in source.
putDouble
void putDouble(double d)
Undocumented in source.
put
void put(byte[] src, int offset, int length)
Undocumented in source.
putShort
void putShort(short s)
Undocumented in source.
putInt
void putInt(int i)
Undocumented in source.
putLong
void putLong(long l)
Undocumented in source.
hasRemaining
bool hasRemaining()
Undocumented in source.
ensureRemaining
void ensureRemaining(int requiredRemaining)
Undocumented in source. Be warned that the author may not have intended to support it.
remaining
int remaining()
Undocumented in source.
position
int position()
Undocumented in source.
position
void position(int position)
Undocumented in source.
put
void put(ByteBuffer payload)
Undocumented in source.
put
void put(ReadableBuffer payload)
Undocumented in source.
put
void put(string value)
Undocumented in source. Be warned that the author may not have intended to support it.
limit
int limit()
Undocumented in source.

Meta