public interface BytesCommon
| Modifier and Type | Method and Description |
|---|---|
ByteOrder |
byteOrder() |
BytesMarshallerFactory |
bytesMarshallerFactory() |
long |
capacity() |
void |
checkEndOfBuffer() |
void |
finish()
Mark the end of the message if writing and check we are at the end of the message if reading.
|
InputStream |
inputStream() |
boolean |
isFinished() |
OutputStream |
outputStream() |
long |
position() |
void |
position(long position) |
long |
remaining() |
void |
reset()
Start again, unfinished, position() == 0
|
void |
write(BytesCommon bytes,
long position,
long length)
Copy from one Bytes to another, moves the position by length
|
long position()
void position(long position)
position - to skip tolong capacity()
long remaining()
void finish()
throws IndexOutOfBoundsException
IndexOutOfBoundsException - if too much data was written.boolean isFinished()
void reset()
@NotNull ByteOrder byteOrder()
@NotNull InputStream inputStream()
@NotNull OutputStream outputStream()
@NotNull BytesMarshallerFactory bytesMarshallerFactory()
void checkEndOfBuffer()
throws IndexOutOfBoundsException
IndexOutOfBoundsException - if the bounds of the Bytes has been exceeded.void write(BytesCommon bytes, long position, long length)
bytes - to copyposition - to copy fromlength - to copyCopyright © 2014. All Rights Reserved.