default
core
corecore.BufferfillZero() - Fill the entire buffer with 0.
free() - Free buffer bytes
getChecksum() : int - Return checksum for this Buffer.
getString(int off, max) : String - Extract 0 terminated string from buffer.
gunzip(Buffer src, int off, len, uncompressedSize) - Uncompress the given source buffer.
gzip(Buffer src, int off, len, level) : boolean - Compress the given source buffer.
peekF32(int off) : float - Read 32bit single precision floating point value from the given buffer offset.
peekI16(int off) : short - Read short integer from the given buffer offset.
peekI32(int off) : int - Read 32bit integer from the given buffer offset.
peekI8(int off) : byte - Read byte from the given buffer offset
pokeF32(int off, float value) - Store 32bit single precision floating point value at the given buffer offset.
pokeI16(int off, short value) - Store short integer at the given buffer offset.
pokeI32(int off, value) - Store 32bit integer at the given buffer offset.
pokeI8(int off, byte value) - Store byte at the given buffer offset
resize(int num) : boolean - Change the size of the buffer.
setSize(int num) : boolean - Allocate the given number of bytes.
setString(int off, String s) : boolean - Store 0 terminated string at the given buffer offset.
substring(String r, int off, max) - Extract 0 terminated string from buffer. Method fillZero | |||
Fill the entire buffer with 0. | |||
Signature | |||
|
Method free | |||
Free buffer bytes | |||
Signature | |||
|
Method getChecksum | |||||
Return checksum for this Buffer. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method getString | ||||||||||||||||||||
Extract 0 terminated string from buffer. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
At most "max" characters will be extracted. | ||||||||||||||||||||
Method gunzip | |||||||||||||||||||||||||
Uncompress the given source buffer. | |||||||||||||||||||||||||
Signature | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Arguments | |||||||||||||||||||||||||
| |||||||||||||||||||||||||
Description | |||||||||||||||||||||||||
This buffer will be resized to the uncompressed size. |
Method gzip | ||||||||||||||||||||||||||||||
Compress the given source buffer. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Returns | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Description | ||||||||||||||||||||||||||||||
This buffer will be resized to the compressed size. | ||||||||||||||||||||||||||||||
Method peekF32 | ||||||||||
Read 32bit single precision floating point value from the given buffer offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method peekI16 | ||||||||||
Read short integer from the given buffer offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The return value byteorder will be swapped according to the current buffer byteorder. | ||||||||||
Method peekI32 | ||||||||||
Read 32bit integer from the given buffer offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The return value byteorder will be swapped according to the current buffer byteorder. | ||||||||||
Method peekI8 | ||||||||||
Read byte from the given buffer offset | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method pokeF32 | |||||||||||||||
Store 32bit single precision floating point value at the given buffer offset. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method pokeI16 | |||||||||||||||
Store short integer at the given buffer offset. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
The value byteorder will be swapped according to the current buffer byteorder. |
Method pokeI32 | |||||||||||||||
Store 32bit integer at the given buffer offset. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
The value byteorder will be swapped according to the current buffer byteorder. |
Method pokeI8 | |||||||||||||||
Store byte at the given buffer offset | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method resize | ||||||||||
Change the size of the buffer. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method setSize | ||||||||||
Allocate the given number of bytes. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method setString | ||||||||||||||||||||
Store 0 terminated string at the given buffer offset. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Method substring | ||||||||||||||||||||
Extract 0 terminated string from buffer. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The result will be written to String "r". At most "max" characters will be written. |
auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54