Class: OpenSSL::Buffering::Buffer
- Inherits:
-
String
- Object
- String
- OpenSSL::Buffering::Buffer
- Defined in:
- lib/openssl/buffering.rb
Overview
A buffer which will retain binary encoding.
Instance Method Summary collapse
Instance Method Details
#append_as_bytes(string) ⇒ Object
29 30 31 32 33 34 35 36 37 |
# File 'lib/openssl/buffering.rb', line 29 def append_as_bytes(string) if string.encoding == Encoding::BINARY _append(string) else _append(string.b) end self end |