Method | Description | |
---|---|---|
CircularByteBuffer ( |
Initialize by copying the CircularByteBuffer passed in
|
|
CircularByteBuffer ( int size ) : System | ||
Copy ( ) : |
||
GetRange ( int str, int stp ) : byte[] |
Returns a range (in terms of Offsets) in an int array in chronological (oldest-to-newest) order. e.g. (3, 0) returns the last four ints pushed, with result[3] being the most recent.
|
|
Peek ( ) : byte |
Returns what would fall out of the buffer on a Push. NOT the same as what you'd get with a Pop().
|
|
Pop ( ) : byte |
Pop an integer off the start of the buffer. Throws an exception if the buffer is empty (NumValid == 0)
|
|
Push ( byte newValue ) : byte |
Push a byte into the buffer. Returns the value of whatever comes off.
|
|
Reset ( ) : void | ||
ToString ( ) : String | ||
this ( int index ) : byte |
e.g. Offset[0] is the current value
|
Method | Description | |
---|---|---|
InternalGet ( int offset ) : byte | ||
InternalSet ( int offset, byte valueToSet ) : void |
public CircularByteBuffer ( |
||
cdb | ||
return | System |
public CircularByteBuffer ( int size ) : System | ||
size | int | |
return | System |
public GetRange ( int str, int stp ) : byte[] | ||
str | int | |
stp | int | |
return | byte[] |