public class ByteStream extends Object
| Constructor and Description |
|---|
ByteStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(ByteBufferDesc buf)
Appends the ByteBuffer instance to the ByteStream.
|
void |
discard(int count)
Discards the specified amount of bytes from the stream.
|
void |
get(ByteBuffer dst)
Fills the specified buffer with as much bytes as
possible.
|
boolean |
hasData()
Returns whether there are any bytes pending in this stream
|
public void append(ByteBufferDesc buf)
public boolean hasData()
public void get(ByteBuffer dst)
public void discard(int count)
PyroException - if it failed to discard the
specified number of bytesCopyright © 2016. All rights reserved.