node-ejs-renderer/node_modules/@jsonjoy.com/json-pack/lib/msgpack/MsgPackDecoderFast.d.ts
2024-06-09 13:55:01 -04:00

19 lines
826 B
TypeScript

import { JsonPackExtension } from '../JsonPackExtension';
import { Reader } from '@jsonjoy.com/util/lib/buffers/Reader';
import type { BinaryJsonDecoder, PackValue } from '../types';
import type { CachedUtf8Decoder } from '@jsonjoy.com/util/lib/buffers/utf8/CachedUtf8Decoder';
export declare class MsgPackDecoderFast<R extends Reader> implements BinaryJsonDecoder {
reader: R;
protected readonly keyDecoder: CachedUtf8Decoder;
constructor(reader?: R, keyDecoder?: CachedUtf8Decoder);
decode(uint8: Uint8Array): unknown;
read(uint8: Uint8Array): PackValue;
val(): unknown;
str(): unknown;
protected obj(size: number): object;
protected key(): string;
protected arr(size: number): unknown[];
protected ext(size: number): JsonPackExtension;
protected back(bytes: number): void;
}