write static method

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

Implementation

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

  new_offset += FfiConverterOutPoint.write(
      value.previousOutput, Uint8List.view(buf.buffer, new_offset));
  new_offset +=
      Script.write(value.scriptSig, Uint8List.view(buf.buffer, new_offset));
  new_offset += FfiConverterUInt32.write(
      value.sequence, Uint8List.view(buf.buffer, new_offset));
  new_offset += FfiConverterSequenceUint8List.write(
      value.witness, Uint8List.view(buf.buffer, new_offset));
  return new_offset - buf.offsetInBytes;
}