native
ReadPackString
Syntax
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 |
Return
Number of cells written to buffer
Error
If an invalid handle is provided, or not enough data is left
in the datapack, an error will be thrown.