ResetPack

Syntax

native ResetPack(DataPack:pack, bool:clear = false);

Usage

pack
Datapack handle
clear
If true, clears the contained data

Description

Resets the datapack read/write position to the start.

Return

This function has no return value.

Error

If an invalid handle is provided, an error will be thrown.