Creates a new encoder instance.
An optional custom implementation of CRDT writer.
Encodes a JSON CRDT Patch into a Uint8Array blob.
A JSON CRDT Patch to encode.
A Uint8Array blob containing the encoded JSON CRDT Patch.
ProtectedencodeProtectedencodeProtectedwriteProtectedwriteWrites a CBOR simple value. Values 24 to 31 are not well-formed CBOR and values above 255 are not representable, do not pass them in.
Simple value in the range 0 to 255.
Called when the encoder encounters a value that it does not know how to encode.
Some JavaScript value.
JSON CRDT Patch "binary" codec encoder.