TrieSnapshotKeyBufferSize Function

Returns the buffer size required to store a given key. That is, it returns the length of the key plus one.

int TrieSnapshotKeyBufferSize(Handle snapshot, int index)

Parameters

Handle snapshot

Map snapshot.

int index

Key index (starting from 0).

Return Value

Buffer size required to store the key string.

Errors

Invalid Handle or index out of range.