Skip to content

Std memory databuffer

std:std.memory.DataBuffer

Class DataBuffer Extends Resource#

DataBuffer class.

Constructors
New Creates a new data buffer.
Properties
ByteOrder The byte order of the databuffer.
Data A raw pointer to the databuffer's internal memory. (read only)
Length The length of the databuffer in bytes. (read only)
Methods
Compress Compresses data buffer.
CopyTo Copies databuffer data to another databuffer.
Decompress Decompresses data buffer.
PeekByte Reads a byte from the databuffer.
PeekCString Reads a null terminated CString from the databuffer.
PeekDouble Reads a 64 bit double from the databuffer.
PeekFloat Reads a 32 bit float from the databuffer.
PeekInt Reads a 32 bit int from the databuffer.
PeekLong Reads a 64 bit long from the databuffer.
PeekShort Reads a 16 bit short from the databuffer.
PeekString Reads a string from the databuffer.
PeekUByte Reads a ubyte from the databuffer.
PeekUInt Reads a 32 bit uint from the databuffer.
PeekULong Reads a 64 bit ulong from the databuffer.
PeekUShort Reads a 16 bit ushort from the databuffer.
PokeByte Writes a byte to the databuffer.
PokeCString Writes a null terminated CString to the data buffer.
PokeDouble Writes a 64 bit double to the databuffer
PokeFloat Writes a 32 bit float to the databuffer
PokeInt Writes a 32 bit int to the databuffer
PokeLong Writes a 64 bit long to the databuffer
PokeShort Writes a 16 bit short to the databuffer
PokeString Write a string to the databuffer.
PokeUByte Writes an unsigned byte to the databuffer.
PokeUInt Writes a 32 bit unsigned int to the databuffer
PokeULong Writes a 64 bit unsigned long to the databuffer
PokeUShort Writes a 16 bit unsigned short to the databuffer
Resize Resizes the databuffer.
Save Saves the contents of the databuffer to a file.
Slice Creates a slice of the databuffer.
Functions
Load Creates a databuffer with the contents of a file.
Protected methods
OnDiscard
OnFinalize