SshDataWriter
Defined in: src/protocols/ssh/binary/SshDataWriter.ts:10
Minimal SSH primitive encoder for transport and authentication packets.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SshDataWriter(): SshDataWriter;Returns
Section titled “Returns”SshDataWriter
Methods
Section titled “Methods”toBuffer()
Section titled “toBuffer()”toBuffer(): Buffer;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:83
Returns
Section titled “Returns”Buffer
writeBoolean()
Section titled “writeBoolean()”writeBoolean(value: boolean): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:21
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | boolean |
Returns
Section titled “Returns”this
writeByte()
Section titled “writeByte()”writeByte(value: number): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:14
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | number |
Returns
Section titled “Returns”this
writeBytes()
Section titled “writeBytes()”writeBytes(value: Uint8Array): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:25
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | Uint8Array |
Returns
Section titled “Returns”this
writeMpint()
Section titled “writeMpint()”writeMpint(value: Uint8Array): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:63
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | Uint8Array |
Returns
Section titled “Returns”this
writeNameList()
Section titled “writeNameList()”writeNameList(values: readonly string[]): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:69
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
values | readonly string[] |
Returns
Section titled “Returns”this
writeString()
Section titled “writeString()”writeString(value: string | Uint8Array<ArrayBufferLike>, encoding?: BufferEncoding): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:57
Parameters
Section titled “Parameters”| Parameter | Type | Default value |
|---|---|---|
value | string | Uint8Array<ArrayBufferLike> | undefined |
encoding | BufferEncoding | "utf8" |
Returns
Section titled “Returns”this
writeUint32()
Section titled “writeUint32()”writeUint32(value: number): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:29
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | number |
Returns
Section titled “Returns”this
writeUint64()
Section titled “writeUint64()”writeUint64(value: bigint): this;Defined in: src/protocols/ssh/binary/SshDataWriter.ts:43
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | bigint |
Returns
Section titled “Returns”this