Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/s3si/deps.ts>msgpack.ExtensionCodec

Export your battles from SplatNet to https://stat.ink
Go to Latest
class msgpack.ExtensionCodec
import { msgpack } from "https://deno.land/x/s3si@gui-v0.4.16/deps.ts";
const { ExtensionCodec } = msgpack;

Constructors

new
ExtensionCodec()

Type Parameters

optional
ContextType = undefined

Properties

private
readonly
builtInDecoders: Array<ExtensionDecoderType<ContextType> | undefined | null>
private
readonly
builtInEncoders: Array<ExtensionEncoderType<ContextType> | undefined | null>
private
readonly
decoders: Array<ExtensionDecoderType<ContextType> | undefined | null>
private
readonly
encoders: Array<ExtensionEncoderType<ContextType> | undefined | null>
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>