|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.tls.ByteQueue
public class ByteQueue
A queue for bytes. This file could be more optimized.
Constructor Summary | |
---|---|
ByteQueue()
|
|
ByteQueue(int capacity)
|
Method Summary | |
---|---|
void |
addData(byte[] buf,
int off,
int len)
Add some data to our buffer. |
static int |
nextTwoPow(int i)
|
void |
read(byte[] buf,
int offset,
int len,
int skip)
Read data from the buffer. |
void |
removeData(byte[] buf,
int off,
int len,
int skip)
Remove data from the buffer. |
void |
removeData(int i)
Remove some bytes from our data from the beginning. |
byte[] |
removeData(int len,
int skip)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteQueue()
public ByteQueue(int capacity)
Method Detail |
---|
public static final int nextTwoPow(int i)
public void read(byte[] buf, int offset, int len, int skip)
buf
- The buffer where the read data will be copied to.offset
- How many bytes to skip at the beginning of buf.len
- How many bytes to read at all.skip
- How many bytes from our data to skip.public void addData(byte[] buf, int off, int len)
buf
- A byte-array to read data from.off
- How many bytes to skip at the beginning of the array.len
- How many bytes to read from the array.public void removeData(int i)
i
- How many bytes to remove.public void removeData(byte[] buf, int off, int len, int skip)
buf
- The buffer where the removed data will be copied to.off
- How many bytes to skip at the beginning of buf.len
- How many bytes to read at all.skip
- How many bytes from our data to skip.public byte[] removeData(int len, int skip)
public int size()
|
Bouncy Castle Cryptography 1.50 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |