read static method

Implementation

static LiftRetVal<InvalidSecp256k1PublicKeyPsbtException> read(
    Uint8List buf) {
  int new_offset = buf.offsetInBytes;

  final secp256k1Error_lifted =
      FfiConverterString.read(Uint8List.view(buf.buffer, new_offset));
  final secp256k1Error = secp256k1Error_lifted.value;
  new_offset += secp256k1Error_lifted.bytesRead;
  return LiftRetVal(
      InvalidSecp256k1PublicKeyPsbtException._(
        secp256k1Error,
      ),
      new_offset);
}