Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
class DenoBuffer
implements Reader, Writer
import { DenoBuffer } from "https://deno.land/x/natsws@v1.28.0/src/nats-base-client.ts";

Constructors

new
DenoBuffer(ab?: ArrayBuffer)

Properties

_buf: Uint8Array
_off: number
readonly
capacity: number
readonly
length: number

Methods

_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