Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/kwik/deps.ts>msgpack.ExtensionCodec

Kwik is a deno database using messagepack files.
Latest
class msgpack.ExtensionCodec
Re-export
import { msgpack } from "https://deno.land/x/kwik@v1.3.1/deps.ts";
const { ExtensionCodec } = msgpack;

Constructors

new
ExtensionCodec()

Type Parameters

optional
ContextType = undefined

Properties

private
readonly
builtInDecoders
private
readonly
builtInEncoders
private
readonly
decoders
private
readonly
encoders
optional
__brand: ContextType

Methods

decode(
data: Uint8Array,
type: number,
context: ContextType,
): unknown
register(unnamed 0: { type: number; encode: ExtensionEncoderType<ContextType>; decode: ExtensionDecoderType<ContextType>; }): void
tryToEncode(object: unknown, context: ContextType): ExtData | null

Static Properties

readonly
defaultCodec: ExtensionCodecType<undefined>