write static method

int write(
  1. TxOut value,
  2. Uint8List buf
)

Implementation

static int write(TxOut value, Uint8List buf) {
  int new_offset = buf.offsetInBytes;

  new_offset +=
      Amount.write(value.value, Uint8List.view(buf.buffer, new_offset));
  new_offset += Script.write(
      value.scriptPubkey, Uint8List.view(buf.buffer, new_offset));
  return new_offset - buf.offsetInBytes;
}