default
core
corecore.Bufferbase64Decode() : String in:int - Base64-decode String to buffer. Set io_offset to decoded size.
base64Encode() : String out:int - Base64-encode buffer region 0..io_offset and write to out String.
compareBuffer() : Buffer o:boolean - Compare buffer to other buffer (io_offset bytes).
fillI8() - Fill the entire buffer with byte 'c'.
fillZero() - 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.
hexdump(int num) : int start - Debug-print buffer(area) to console.
peekF32(int off) : float - Read 32bit single precision floating point value from the given buffer offset.
peekI14(int off) : short - Read short 7:7 integer from the given buffer offset.
peekI16(int off) : short - Read unsigned short integer from the given buffer offset.
peekI32(int off) : int - Read unsigned 32bit integer from the given buffer offset.
peekI8(int off) : byte - Read unsigned byte from the given buffer offset
peekS16(int off) : short - Read signed short integer from the given buffer offset.
peekS32(int off) : int - Read signed 32bit integer from the given buffer offset.
peekS8(int off) : byte - Read signed byte from the given buffer offset
pokeF32(int off, float value) - Store 32bit single precision floating point value at the given buffer offset.
pokeI14(int off, short value) - Store short 7:7 integer 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
readBufferBits(int numBits) : int - Treat buffer as bitstream and read up to 32 bits from the given start bit offset.
resize(int num) : boolean - Change the size of the buffer.
ringReadBuffer(int ringStartOff, ringSz, Buffer dst, int dstOff, numBytes) - Copy ringbuffer area within this buffer to dst buffer.
ringWriteBuffer(int ringStartOff, ringSz, Buffer src, int srcOff, numBytes) - Copy buffer data to ringbuffer area within this 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.
truncate() : int sz - Truncate buffer size (w/o reallocation).
visit(int off, len) : Buffer b - Create view into other buffer.
writeBufferBits(int numBits, val) : int startBit - Treat buffer as bitstream and write up to 32 bits to the given start bit offset.Method base64Decode | |||||
Base64-decode String to buffer. Set io_offset to decoded size. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method base64Encode | |||||
Base64-encode buffer region 0..io_offset and write to out String. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method compareBuffer | |||||
Compare buffer to other buffer (io_offset bytes). | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method fillI8 | |||
Fill the entire buffer with byte 'c'. | |||
Signature | |||
|
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 hexdump | ||||||||||
Debug-print buffer(area) to console. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method peekF32 | ||||||||||
Read 32bit single precision floating point value from the given buffer offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method peekI14 | ||||||||||
Read short 7:7 integer from the given buffer offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Description | ||||||||||
The return value byteorder will be swapped according to the current buffer byteorder. | ||||||||||
Method peekI16 | ||||||||||
Read unsigned 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 unsigned 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 unsigned byte from the given buffer offset | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method peekS16 | ||||||||||
Read signed 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 peekS32 | ||||||||||
Read signed 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 peekS8 | ||||||||||
Read signed 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 pokeI14 | |||||||||||||||
Store short 7:7 integer at the given buffer offset. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
| |||||||||||||||
Description | |||||||||||||||
The value byteorder will be swapped according to the current buffer byteorder. |
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 readBufferBits | ||||||||||
Treat buffer as bitstream and read up to 32 bits from the given start bit offset. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method resize | ||||||||||
Change the size of the buffer. | ||||||||||
Signature | ||||||||||
| ||||||||||
Arguments | ||||||||||
| ||||||||||
Returns | ||||||||||
| ||||||||||
Method ringReadBuffer | ||||||||||||||||||||||||||||||
Copy ringbuffer area within this buffer to dst buffer. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
|
Method ringWriteBuffer | ||||||||||||||||||||||||||||||
Copy buffer data to ringbuffer area within this buffer. | ||||||||||||||||||||||||||||||
Signature | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||
Arguments | ||||||||||||||||||||||||||||||
|
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. |
Method truncate | |||||
Truncate buffer size (w/o reallocation). | |||||
Signature | |||||
| |||||
Returns | |||||
| |||||
Description | |||||
Current size must be >= 'sz'. |
Method visit | ||||||||||||||||||||
Create view into other buffer. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
Description | ||||||||||||||||||||
The previous content of this buffer will be freed. Make sure to keep the source buffer alive as long as the visited data in this buffer is accessed. | ||||||||||||||||||||
Method writeBufferBits | ||||||||||||||||||||
Treat buffer as bitstream and write up to 32 bits to the given start bit offset. | ||||||||||||||||||||
Signature | ||||||||||||||||||||
| ||||||||||||||||||||
Arguments | ||||||||||||||||||||
| ||||||||||||||||||||
Returns | ||||||||||||||||||||
| ||||||||||||||||||||
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59