write static method
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;
}