IByteBuffer
OutByteBuffer
public interface IOutByteBuffer extends IByteBuffer
Modifier and Type | Method | Description |
---|---|---|
void |
flush() |
Empty the buffer.
|
void |
free(int reserve,
int size) |
Free at least some number of bytes of space in the byte array.
|
finish, getBuffer, getOffset, setOffset
void free(int reserve, int size) throws java.io.IOException
IByteBuffer.getBuffer()
and IByteBuffer.getOffset()
must always be called
again before any further use of the buffer.reserve
- offset of data to be preserved in buffer (nothing
preserved if greater than or equal to current offset)size
- desired number of bytesjava.io.IOException
void flush() throws java.io.IOException
IByteBuffer.getOffset()
must always be called again before any
further use of the buffer.java.io.IOException