write static method

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

Implementation

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

  new_offset += FfiConverterTxid.write(
      value.txid, Uint8List.view(buf.buffer, new_offset));
  new_offset += FfiConverterUInt32.write(
      value.vout, Uint8List.view(buf.buffer, new_offset));
  return new_offset - buf.offsetInBytes;
}