Skip to content

SshDataWriter

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:10

Minimal SSH primitive encoder for transport and authentication packets.

new SshDataWriter(): SshDataWriter;

SshDataWriter

toBuffer(): Buffer;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:83

Buffer


writeBoolean(value: boolean): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:21

ParameterType
valueboolean

this


writeByte(value: number): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:14

ParameterType
valuenumber

this


writeBytes(value: Uint8Array): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:25

ParameterType
valueUint8Array

this


writeMpint(value: Uint8Array): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:63

ParameterType
valueUint8Array

this


writeNameList(values: readonly string[]): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:69

ParameterType
valuesreadonly string[]

this


writeString(value: string | Uint8Array<ArrayBufferLike>, encoding?: BufferEncoding): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:57

ParameterTypeDefault value
valuestring | Uint8Array<ArrayBufferLike>undefined
encodingBufferEncoding"utf8"

this


writeUint32(value: number): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:29

ParameterType
valuenumber

this


writeUint64(value: bigint): this;

Defined in: src/protocols/ssh/binary/SshDataWriter.ts:43

ParameterType
valuebigint

this