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

DataBuffer

import { DataBuffer } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class DataBuffer {
constructor();
buffers: Uint8Array[];
byteLength: number;
 
drain(n?: number): Uint8Array;
fill(a: Uint8Array, ...bufs: Uint8Array[]): void;
length(): number;
pack(): void;
peek(): Uint8Array;
reset(): void;
shift(): Uint8Array;
size(): number;
 
static concat(...bufs: Uint8Array[]): Uint8Array;
static fromAscii(m: string): Uint8Array;
static toAscii(a: Uint8Array): string;
}

§Constructors

§
new DataBuffer()
[src]

§Properties

§
buffers: Uint8Array[]
[src]
§
byteLength: number
[src]

§Methods

§
drain(n?: number): Uint8Array
[src]
§
fill(a: Uint8Array, ...bufs: Uint8Array[]): void
[src]
§
length(): number
[src]
§
pack(): void
[src]
§
peek(): Uint8Array
[src]
§
reset(): void
[src]
§
shift(): Uint8Array
[src]
§
size(): number
[src]

§Static Methods

§
concat(...bufs: Uint8Array[]): Uint8Array
[src]
§
fromAscii(m: string): Uint8Array
[src]
§
toAscii(a: Uint8Array): string
[src]