lib/bitcoin/protocol/txout.rb
# parse raw binary data for transaction output
parse raw binary data for transaction output
parse raw binary data for transaction output
def parse_data_from_io(buf)
        clear_parsed_script_cache
        @value = buf.read(8).unpack('Q')[0]
        @pk_script_length = Protocol.unpack_var_int_from_io(buf)
        @pk_script = buf.read(@pk_script_length)
      end
def parse_data_from_io ( buf ) clear_parsed_script_cache @value = buf . read ( 8 ) . unpack ( 'Q' ) [ 0 ] @pk_script_length = Protocol . unpack_var_int_from_io ( buf ) @pk_script = buf . read ( @pk_script_length ) end
parse raw binary data for transaction output
parse raw binary data for transaction output
buf
<not_specific>