ValuePacker
Unpacks and packs values of various types into a table of numbers. This is useful for storing values in a format that can be easily serialized or transmitted.
Functions
UnpackValue
ValuePacker.UnpackValue(Value: any,--
The value to unpack
ValueType: string--
The type of the value to unpack
) → UnpackedValue--
The unpacked value as a table of numbers
Unpacks a value of a given type into a table of numbers. If the type is not supported, returns an empty table.
PackValue
ValuePacker.PackValue(UnpackedValue: UnpackedValue,--
The unpacked value as a table of numbers
ValueType: string--
The type of the value to pack
) → any--
The packed value of the specified type
Packs a table of numbers into a value of a given type. If the type is not supported, returns nil.