Skip to Content Skip to Search

A buffer which will retain binary encoding.

Methods
#
C
N

Constants

BINARY = Encoding::BINARY
 

Class Public methods

new()

# File ruby/ext/openssl/lib/openssl/buffering.rb, line 29
def initialize
  super

  force_encoding(BINARY)
end

Instance Public methods

<<(string)

Also aliased as: concat
# File ruby/ext/openssl/lib/openssl/buffering.rb, line 35
def << string
  if string.encoding == BINARY
    super(string)
  else
    super(string.b)
  end

  return self
end

concat(string)

Alias for: <<