edgeport - v1.0.3
    Preparing search index...

    Class SshWriter

    Builds an SSH packet payload from RFC 4251 primitive types.

    Index
    • Writes a boolean as 0x01 (true) or 0x00 (false).

      Parameters

      • b: boolean

      Returns this

    • Writes a single byte.

      Parameters

      • n: number

      Returns this

    • Returns the assembled bytes.

      Returns Uint8Array

    • Writes an SSH mpint from an unsigned big-endian magnitude.

      Parameters

      • magnitude: Uint8Array

      Returns this

    • Writes an SSH name-list (a string of comma-joined names).

      Parameters

      • names: string[]

      Returns this

    • Writes raw bytes with no length prefix.

      Parameters

      • bytes: Uint8Array

      Returns this

    • Writes an SSH string: a uint32 length prefix followed by the bytes.

      Parameters

      • value: string | Uint8Array<ArrayBufferLike>

      Returns this

    • Writes a big-endian uint32.

      Parameters

      • n: number

      Returns this

    • Writes a big-endian uint64.

      Parameters

      • n: bigint

      Returns this