Module: BytesHelper
- Defined in:
- lib/bytes.rb
Instance Method Summary collapse
- #bytes_to_hex(str) ⇒ Object (also: #b_to_h, #btoh)
- #hex_to_bytes(hexstr) ⇒ Object (also: #h_to_b, #htob)
Instance Method Details
#bytes_to_hex(str) ⇒ Object Also known as: b_to_h, btoh
72 |
# File 'lib/bytes.rb', line 72 def bytes_to_hex( str ) Bytes.to_hex( str ); end |
#hex_to_bytes(hexstr) ⇒ Object Also known as: h_to_b, htob
68 |
# File 'lib/bytes.rb', line 68 def hex_to_bytes( hexstr ) Bytes.from_hex( hexstr); end |