Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Utilities for encoding and decoding common formats like hex, base64, and varint
Supported ascii85 standards for Ascii85Options.
Decodes a ascii85-encoded string.
Converts data into an ascii58-encoded string.
Decodes a base32-encoded string.
Converts data into a base32-encoded string.
Decodes a base58-encoded string.
Converts data into a base58-encoded string.
Decodes a base64-encoded string.
Converts data into a base64-encoded string.
Decodes a given base64url-encoded string.
Convert data into a base64url-encoded string.
hex
Port of the Go encoding/hex library.
varint
Functions for encoding typed integers in array buffers.
Given a non empty buf, starting at offset (default: 0), begin decoding bytes as
VarInt encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
tuple is of the decoded varint 32-bit number, and the new offset with which
to continue decoding other data.
Given a buf, starting at offset (default: 0), begin decoding bytes as
VarInt encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
tuple is of the decoded varint 32-bit number, and the new offset with which
to continue decoding other data.
Takes unsigned number num and converts it into a VarInt encoded
Uint8Array, returning a tuple consisting of a Uint8Array slice of the
encoded VarInt, and an offset where the VarInt encoded bytes end within the
Uint8Array.
Functions for encoding typed integers in array buffers.
Given a non empty buf, starting at offset (default: 0), begin decoding bytes as
VarInt encoded bytes, for a maximum of 10 bytes (offset + 10). The returned
tuple is of the decoded varint 32-bit number, and the new offset with which
to continue decoding other data.
Given a buf, starting at offset (default: 0), begin decoding bytes as
VarInt encoded bytes, for a maximum of 5 bytes (offset + 5). The returned
tuple is of the decoded varint 32-bit number, and the new offset with which
to continue decoding other data.
Takes unsigned number num and converts it into a VarInt encoded
Uint8Array, returning a tuple consisting of a Uint8Array slice of the
encoded VarInt, and an offset where the VarInt encoded bytes end within the
Uint8Array.