A buffer which will retain binary encoding.
Constants
No documentation available
Class Methods
::
ext/openssl/lib/openssl/buffering.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/openssl/lib/openssl/buffering.rb, line 29
def initialize
super
force_encoding(BINARY)
end
No documentation available
Instance Methods
ext/openssl/lib/openssl/buffering.rb
View on GitHub
# File tmp/rubies/ruby-3.4.0-preview1/ext/openssl/lib/openssl/buffering.rb, line 35
def << string
if string.encoding == BINARY
super(string)
else
super(string.b)
end
return self
end
No documentation available