DataPack Class

A DataPack allows serializing multiple variables into a single stream.

Methods 15

Name Description
DataPack

Creates a new data pack.

IsReadable

Returns whether or not a specified number of bytes from the data pack position to the end can be read.

ReadCell

Reads a cell from a data pack.

ReadCellArray

Reads an array of cells a data pack.

ReadFloat

Reads a float from a data pack.

ReadFloatArray

Reads an array of floats from a data pack.

ReadFunction

Reads a function pointer from a data pack.

ReadString

Reads a string from a data pack.

Reset

Resets the position in a data pack.

WriteCell

Packs a normal cell into a data pack.

WriteCellArray

Packs an array of cells into a data pack.

WriteFloat

Packs a float into a data pack.

WriteFloatArray

Packs an array of floats into a data pack.

WriteFunction

Packs a function pointer into a data pack.

WriteString

Packs a string into a data pack.

Properties 1

Name Type Description
PositionDataPackPos

The read or write position in a data pack.