Function packAndDeflateB64
- pack
And (data, opts?): stringDeflate B64 Parameters
- data: any
Any data.
Optional
opts: {
deflateOptions?: DeflateOptions;
urlsafe?: boolean;
}Optional parameters.
Optional
deflateOptions ?: DeflateOptionsDeflate options.
Optional
urlsafe?: booleanBase64 string is URL-and-filename-safe a la
RFC4648 ยง5
.
Returns string
Packed / compressed / Base64 string.
- data: any
Packs given data with MessagePack then deflates / compresses with Zlib then converts the Uint8Array to a Base64 string. The inverse function to inflate is
inflateAndUnpackB64
.