Module: TT::Binary
- Defined in:
- TT_Lib2/binary.rb
Overview
…
Class Method Summary collapse
Class Method Details
.decode64(string) ⇒ Mixed
32 33 34 |
# File 'TT_Lib2/binary.rb', line 32 def self.decode64(string) return string.unpack('m')[0] end |
.encode64(data) ⇒ String
21 22 23 |
# File 'TT_Lib2/binary.rb', line 21 def self.encode64(data) return [data].pack('m') end |