|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcodesimian.ByteBuf
public class ByteBuf
| Constructor Summary | |
|---|---|
ByteBuf()
|
|
| Method Summary | |
|---|---|
void |
add(byte[] bytes)
add some bytes, which become the newest bytes |
int |
count()
|
static void |
main(java.lang.String[] a)
|
byte[] |
remove(int bytesToRemove)
Removes and returns the oldest 'numBytes' bytes, or all remaining bytes if not that many exist, or null if no bytes exist. Will split an array added by add() if necessary. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ByteBuf()
| Method Detail |
|---|
public final int count()
public java.lang.String toString()
toString in class java.lang.Objectpublic byte[] remove(int bytesToRemove)
public void add(byte[] bytes)
public static void main(java.lang.String[] a)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||