Method: Net::SSH::Buffer#write_long
- Defined in:
- lib/net/ssh/buffer.rb
#write_long(*n) ⇒ Object
Writes each argument to the buffer as a network-byte-order-encoded long (4-byte) integer. Does not alter the read position. Returns the buffer object.
388 389 390 391 |
# File 'lib/net/ssh/buffer.rb', line 388 def write_long(*n) @content << n.pack("N*") self end |