Method: String#opcode
- Defined in:
- lib/bitcoin.rb
#opcode ⇒ Object
get opcode
92 93 94 95 96 97 98 99 100 101 |
# File 'lib/bitcoin.rb', line 92 def opcode case encoding when Encoding::ASCII_8BIT each_byte.next when Encoding::US_ASCII ord else to_i end end |