public static class WritableBuffer.ByteBufferWrapper extends java.lang.Object implements WritableBuffer
WritableBuffer.ByteBufferWrapper
Constructor and Description |
---|
ByteBufferWrapper(java.nio.ByteBuffer buf) |
Modifier and Type | Method and Description |
---|---|
static WritableBuffer.ByteBufferWrapper |
allocate(int size) |
java.nio.ByteBuffer |
byteBuffer() |
void |
ensureRemaining(int remaining) |
boolean |
hasRemaining() |
int |
limit() |
int |
position() |
void |
position(int position) |
void |
put(byte b) |
void |
put(byte[] src,
int offset,
int length) |
void |
put(java.nio.ByteBuffer src) |
void |
put(ReadableBuffer src) |
void |
put(java.lang.String value) |
void |
putDouble(double d) |
void |
putFloat(float f) |
void |
putInt(int i) |
void |
putLong(long l) |
void |
putShort(short s) |
int |
remaining() |
ReadableBuffer |
toReadableBuffer() |
java.lang.String |
toString() |
static WritableBuffer.ByteBufferWrapper |
wrap(byte[] bytes) |
static WritableBuffer.ByteBufferWrapper |
wrap(java.nio.ByteBuffer buffer) |
public void put(byte b)
put
in interface WritableBuffer
public void putFloat(float f)
putFloat
in interface WritableBuffer
public void putDouble(double d)
putDouble
in interface WritableBuffer
public void put(byte[] src, int offset, int length)
put
in interface WritableBuffer
public void putShort(short s)
putShort
in interface WritableBuffer
public void putInt(int i)
putInt
in interface WritableBuffer
public void putLong(long l)
putLong
in interface WritableBuffer
public boolean hasRemaining()
hasRemaining
in interface WritableBuffer
public void ensureRemaining(int remaining)
ensureRemaining
in interface WritableBuffer
public int remaining()
remaining
in interface WritableBuffer
public int position()
position
in interface WritableBuffer
public void position(int position)
position
in interface WritableBuffer
public void put(java.nio.ByteBuffer src)
put
in interface WritableBuffer
public void put(ReadableBuffer src)
put
in interface WritableBuffer
public void put(java.lang.String value)
put
in interface WritableBuffer
public int limit()
limit
in interface WritableBuffer
public java.nio.ByteBuffer byteBuffer()
public ReadableBuffer toReadableBuffer()
public java.lang.String toString()
toString
in class java.lang.Object
public static WritableBuffer.ByteBufferWrapper allocate(int size)
public static WritableBuffer.ByteBufferWrapper wrap(java.nio.ByteBuffer buffer)
public static WritableBuffer.ByteBufferWrapper wrap(byte[] bytes)