serializeSnapshotSet<
T>(set,codec,options?):Uint8Array
Defined in: packages/snapshot-set/src/serialization/binary.ts:91
Serialize exact snapshot identity, version, value order, and toggle history into canonical binary bytes.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”SnapshotSet<T>
ElementCodec<T>
options?
Section titled “options?”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”With MISSING_ELEMENT_CODEC,
INVALID_CODEC_RESULT, NON_INJECTIVE_CODEC, or
SERIALIZATION_LIMIT_EXCEEDED when the state cannot be represented safely.