Module Net::SSH::Util::WriterBufferImpl
In: lib/net/ssh/util/buffer.rb

A convenience module for writing a string of encoded data. It provides an interface for easily writing and encoding data.

Methods

Public Instance methods

Writes the given data literally into the string.

Writes each argument to the buffer as a bignum (SSH2-style). No checking is done to ensure that the arguments are, in fact, bignums.

Writes each argument to the buffer as a (C-style) boolean, with 1 meaning true, and 0 meaning false.

Writes each argument to the buffer as a byte.

Writes each argument to the buffer as a network-byte-order-encoded 64-bit integer (8 bytes).

Writes the given arguments to the buffer as SSH2-encoded keys.

Writes each argument to the buffer as a network-byte-order-encoded long (4-byte) integer.

Writes each argument to the buffer as a network-byte-order-encoded short (2-byte) integer.

Writes each argument to the buffer as an SSH2-encoded string. Each string is prefixed by its length, encoded as a 4-byte long integer.

[Validate]