Class: Str
- Inherits:
-
FFI::AutoPointer
- Object
- FFI::AutoPointer
- Str
- Defined in:
- lib/blake2b.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.release(ptr) ⇒ Object
5 6 7 |
# File 'lib/blake2b.rb', line 5 def self.release(ptr) Blake2b.free(ptr) end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/blake2b.rb', line 9 def to_s @str ||= self.read_string.force_encoding('UTF-8') end |