A convenience module for writing a string of encoded data. It provides an
interface for easily writing and encoding data.
| Public Methods |
| write |
Writes the given data literally into the string.
|
| write_bignum |
Writes each argument to the buffer as a bignum (SSH2-style). No checking is
done to ensure that the arguments are, in fact, bignums.
|
| write_bool |
Writes each argument to the buffer as a (C-style) boolean, with 1 meaning
true, and 0 meaning false.
|
| write_byte |
Writes each argument to the buffer as a byte.
|
| write_int64 |
Writes each argument to the buffer as a network-byte-order-encoded 64-bit
integer (8 bytes).
|
| write_key |
Writes the given arguments to the buffer as SSH2-encoded keys.
|
| write_long |
Writes each argument to the buffer as a network-byte-order-encoded long
(4-byte) integer.
|
| write_short |
Writes each argument to the buffer as a network-byte-order-encoded short
(2-byte) integer.
|
| write_string |
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.
|
<code/>and<pre/>for code samples.