Go to Latest
class LibuvStreamWrap
extends HandleWrap
import { LibuvStreamWrap } from "https://deno.land/std@0.145.0/node/internal_binding/stream_wrap.ts";

Constructors

new
LibuvStreamWrap(provider: providerType, stream?: Deno.Reader & Deno.Writer & Deno.Closer)

Properties

bytesRead: number
bytesWritten: number
destroyed: boolean
onread: (_arrayBuffer: Uint8Array, _nread: number) => Uint8Array | undefined
reading: boolean
writeQueueSize: number
optional
[kStreamBaseField]: Deno.Reader & Deno.Writer & Deno.Closer

Methods

_onClose(): number
readStart(): number

Start the reading of the stream.

readStop(): number

Stop the reading of the stream.

shutdown(req: ShutdownWrap<LibuvStreamWrap>): number

Shutdown the stream.

useUserBuffer(_userBuf: unknown): number
writeAsciiString(req: WriteWrap<LibuvStreamWrap>, data: string): number

Write an ASCII string to the stream.

writeBuffer(req: WriteWrap<LibuvStreamWrap>, data: Uint8Array): number

Write a buffer to the stream.

writeLatin1String(req: WriteWrap<LibuvStreamWrap>, data: string): number

Write an LATIN1 string to the stream.

writeUcs2String(_req: WriteWrap<LibuvStreamWrap>, _data: string): number

Write an UCS2 string to the stream.

writeUtf8String(req: WriteWrap<LibuvStreamWrap>, data: string): number

Write an UTF8 string to the stream.

writev(
chunks: Buffer[] | (string | Buffer)[],
allBuffers: boolean,
): number

Write multiple chunks at once.