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

DenoBuffer

import { DenoBuffer } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts";
class DenoBuffer implements Reader, Writer {
constructor(ab?: ArrayBuffer);
_buf: Uint8Array;
_off: number;
get length(): number;
get capacity(): number;
 
_grow(n: number): number;
_reslice(len: number): void;
_tryGrowByReslice(n: number): number;
bytes(options?: {
copy?: boolean;
}
): Uint8Array;
empty(): boolean;
grow(n: number): void;
read(p: Uint8Array): number | null;
readByte(): number | null;
readFrom(r: Reader): number;
reset(): void;
truncate(n: number): void;
write(p: Uint8Array): number;
writeByte(n: number): number;
writeString(s: string): number;
}

§Implements

§
Reader
[src]
§
Writer
[src]

§Constructors

§
new DenoBuffer(ab?: ArrayBuffer)
[src]

§Properties

§
_buf: Uint8Array
[src]
§
_off: number
[src]
§
length: number readonly
[src]
§
capacity: number readonly
[src]

§Methods

§
_grow(n: number): number
[src]
§
_reslice(len: number): void
[src]
§
_tryGrowByReslice(n: number): number
[src]
§
bytes(options?: {
copy?: boolean;
}
): Uint8Array
[src]
§
empty(): boolean
[src]
§
grow(n: number): void
[src]
§
read(p: Uint8Array): number | null
[src]
§
readByte(): number | null
[src]
§
readFrom(r: Reader): number
[src]
§
reset(): void
[src]
§
truncate(n: number): void
[src]
§
write(p: Uint8Array): number
[src]
§
writeByte(n: number): number
[src]
§
writeString(s: string): number
[src]