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

x/s3si/deps.ts>msgpack.Decoder

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

Constructors

new
Decoder(
extensionCodec?: ExtensionCodecType<ContextType>,
context?: ContextType,
maxStrLength?,
maxBinLength?,
maxArrayLength?,
maxMapLength?,
maxExtLength?,
keyDecoder?: KeyDecoder | null,
)

Type Parameters

ContextType

Properties

private
bytes
private
headByte
private
pos: number
private
readonly
stack: Array<StackState>
private
totalPos: number
private
view

Methods

private
appendBuffer(buffer: ArrayLike<number> | BufferSource)
private
complete(): void
private
createNoExtraBytesError(posToShow: number): Error
private
decodeBinary(byteLength: number, headOffset: number): Uint8Array
private
decodeExtension(size: number, headOffset: number): unknown
private
decodeMultiAsync(stream: AsyncIterable<ArrayLike<number>>, isArray: boolean)
private
decodeUtf8String(byteLength: number, headerOffset: number): string
private
doDecodeSingleSync(): unknown
private
doDecodeSync(): unknown
private
hasRemaining(size?)
private
lookU16()
private
lookU32()
private
lookU8()
private
pushArrayState(size: number)
private
pushMapState(size: number)
private
readArraySize(): number
private
readF32()
private
readF64()
private
readHeadByte(): number
private
readI16(): number
private
readI32(): number
private
readI64(): number
private
readI8(): number
private
readU16(): number
private
readU32(): number
private
readU64(): number
private
readU8(): number
private
setBuffer(buffer: ArrayLike<number> | ArrayBuffer | BufferSource): void
private
stateIsMapKey(): boolean
decode(buffer: ArrayLike<number> | ArrayBuffer): unknown
decodeArrayStream(stream: AsyncIterable<ArrayLike<number>>)
decodeAsync(stream: AsyncIterable<ArrayLike<number> | BufferSource>): Promise<unknown>
decodeStream(stream: AsyncIterable<ArrayLike<number>>)