Method: OpenSSL::Buffering#getbyte
- Defined in:
- lib/openssl/buffering.rb
#getbyte ⇒ Object
call-seq:
ssl.getbyte => 81
Get the next 8bit byte from ‘ssl`. Returns `nil` on EOF
108 109 110 111 |
# File 'lib/openssl/buffering.rb', line 108 def getbyte byte = read(1) byte && byte.unpack1("C") end |