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,
Methods
private
appendBuffer(buffer: ArrayLike<number> | BufferSource)private
complete(): voidprivate
createNoExtraBytesError(posToShow: number): Errorprivate
decodeBinary(byteLength: number, headOffset: number): Uint8Arrayprivate
decodeExtension(size: number, headOffset: number): unknownprivate
decodeMultiAsync(stream: AsyncIterable<ArrayLike<number>>, isArray: boolean)private
decodeUtf8String(byteLength: number, headerOffset: number): stringprivate
doDecodeSingleSync(): unknownprivate
doDecodeSync(): unknownprivate
hasRemaining(size?)private
lookU16()private
lookU32()private
lookU8()private
pushArrayState(size: number)private
pushMapState(size: number)private
readArraySize(): numberprivate
readF32()private
readF64()private
readHeadByte(): numberprivate
readI16(): numberprivate
readI32(): numberprivate
readI64(): numberprivate
readI8(): numberprivate
readU16(): numberprivate
readU32(): numberprivate
readU64(): numberprivate
readU8(): numberprivate
reinitializeState()private
setBuffer(buffer: ArrayLike<number> | ArrayBuffer | BufferSource): voidprivate
stateIsMapKey(): booleandecode(buffer: ArrayLike<number> | ArrayBuffer): unknown
decodeArrayStream(stream: AsyncIterable<ArrayLike<number>>)
decodeAsync(stream: AsyncIterable<ArrayLike<number> | BufferSource>): Promise<unknown>
decodeStream(stream: AsyncIterable<ArrayLike<number>>)