Signature
native ReadPackString(DataPack:pack, buffer[], maxlen);
Description
Reads a string from a Datapack.
Parameters
- pack — Datapack handle
- buffer — Buffer to copy string to
- maxlen — Maximum size of buffer
Returns
Number of cells written to buffer
Errors
-
If an invalid handle is provided, or not enough data is left
in the datapack, an error will be thrown.