| Modifier and Type | Field and Description |
|---|---|
| private int | available
How many bytes in the buffer are valid data. |
| private byte[] | databuf
The buffer where we store our data. |
| private boolean | |
| private int | skipped
How many bytes at the beginning of the buffer are skipped. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addData(byte[]
A byte-array to read data from. buf, int How many bytes to skip at the beginning of the array. off, int How many bytes to read from the array. len)Add some data to our buffer. |
| public int | |
| public void | copyTo(OutputStream
The output, int OutputStream to copy the bytes to.How many bytes to copy. length)Copy some bytes from the beginning of the data to the provided |
| public static int | |
| public void | read(byte[]
The buffer where the read data will be copied to. buf, int How many bytes to skip at the beginning of buf. offset, int How many bytes to read at all. len, int How many bytes from our data to skip. skip)Read data from the buffer. |
| public void | read(ByteBuffer
The buf, int ByteBuffer where the read data will be copied to.How many bytes to read at all. len, int How many bytes from our data to skip. skip)Read data from the buffer. |
| pack-priv HandshakeMessageInput | Returns: AHandshakeMessageInput over the data.How many bytes will be readable. length)Return a |
| public int | |
| public int | |
| public short | |
| public void | |
| public void | removeData(byte[]
The buffer where the removed data will be copied to. buf, int How many bytes to skip at the beginning of buf. off, int How many bytes to read at all. len, int How many bytes from our data to skip. skip)Remove data from the buffer. |
| public void | removeData(ByteBuffer
The buf, int ByteBuffer where the removed data will be copied to.How many bytes to read at all. len, int How many bytes from our data to skip. skip)Remove data from the buffer. |
| public byte[] | |
| public void |
| available | back to summary |
|---|---|
| private int available How many bytes in the buffer are valid data. | |
| databuf | back to summary |
|---|---|
| private byte[] databuf The buffer where we store our data. | |
| readOnlyBuf | back to summary |
|---|---|
| private boolean readOnlyBuf | |
| skipped | back to summary |
|---|---|
| private int skipped How many bytes at the beginning of the buffer are skipped. | |
| ByteQueue | back to summary |
|---|---|
| public ByteQueue() | |
| ByteQueue | back to summary |
|---|---|
| public ByteQueue(int capacity) | |
| ByteQueue | back to summary |
|---|---|
| public ByteQueue(byte[] buf, int off, int len) | |
| addData | back to summary |
|---|---|
| public void addData(byte[] buf, int off, int len) Add some data to our buffer.
| |
| available | back to summary |
|---|---|
public int available()
| |
| copyTo | back to summary |
|---|---|
| public void copyTo(OutputStream output, int length) throws IOException Copy some bytes from the beginning of the data to the provided
| |
| nextTwoPow | back to summary |
|---|---|
public static int nextTwoPow(int i)
| |
| read | back to summary |
|---|---|
| public void read(byte[] buf, int offset, int len, int skip) Read data from the buffer.
| |
| read | back to summary |
|---|---|
| public void read(ByteBuffer buf, int len, int skip) Read data from the buffer.
| |
| readHandshakeMessage | back to summary |
|---|---|
| pack-priv HandshakeMessageInput readHandshakeMessage(int length) Return a
| |
| readInt32 | back to summary |
|---|---|
| public int readInt32() | |
| readUint16 | back to summary |
|---|---|
| public int readUint16(int skip) | |
| readUint8 | back to summary |
|---|---|
| public short readUint8(int skip) | |
| removeData | back to summary |
|---|---|
| public void removeData(int i) Remove some bytes from our data from the beginning.
| |
| removeData | back to summary |
|---|---|
| public void removeData(byte[] buf, int off, int len, int skip) Remove data from the buffer.
| |
| removeData | back to summary |
|---|---|
| public void removeData(ByteBuffer buf, int len, int skip) Remove data from the buffer.
| |
| removeData | back to summary |
|---|---|
| public byte[] removeData(int len, int skip) | |
| shrink | back to summary |
|---|---|
| public void shrink() | |