Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Parser

import { Parser } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class Parser {
constructor(dispatcher: Dispatcher<ParserEvent>);
argBuf?: DenoBuffer;
as: number;
dispatcher: Dispatcher<ParserEvent>;
drop: number;
hdr: number;
ma: MsgArg;
msgBuf?: DenoBuffer;
state: State;
 
cloneMsgArg();
fail(data: Uint8Array, label?): Error;
parse(buf: Uint8Array): void;
processHeaderMsgArgs(arg: Uint8Array): void;
processMsgArgs(arg: Uint8Array): void;
protoParseInt(a: Uint8Array): number;
}

§Constructors

§
new Parser(dispatcher: Dispatcher<ParserEvent>)
[src]

§Properties

§
as: number
[src]
§
drop: number
[src]
§
hdr: number
[src]
§
ma: MsgArg
[src]

§Methods

§
cloneMsgArg()
[src]
§
fail(data: Uint8Array, label?): Error
[src]
§
parse(buf: Uint8Array): void
[src]
§
processHeaderMsgArgs(arg: Uint8Array): void
[src]
§
processMsgArgs(arg: Uint8Array): void
[src]
§
protoParseInt(a: Uint8Array): number
[src]