Method: Net::SSH::Buffer#read_int64
- Defined in:
- lib/net/ssh/buffer.rb
#read_int64 ⇒ Object
Return the next 8 bytes as a 64-bit integer (in network byte order). Returns nil if there are less than 8 bytes remaining to be read in the buffer.
197 198 199 200 201 |
# File 'lib/net/ssh/buffer.rb', line 197 def read_int64 hi = read_long or return nil lo = read_long or return nil return (hi << 32) + lo end |