instance method
OpenSSL::Buffering#consume_rbuff
(?untyped size) -> untyped
consume_rbuff(size=nil)
ext/openssl/lib/openssl/buffering.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/openssl/lib/openssl/buffering.rb, line 87
def consume_rbuff(size=nil)
if @rbuffer.empty?
nil
else
size = @rbuffer.size unless size
@rbuffer.slice!(0, size)
end
end
Consumes size bytes from the buffer