read static method

Implementation

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

  final encodingError_lifted =
      FfiConverterString.read(Uint8List.view(buf.buffer, new_offset));
  final encodingError = encodingError_lifted.value;
  new_offset += encodingError_lifted.bytesRead;
  return LiftRetVal(
      ConsensusEncodingPsbtException._(
        encodingError,
      ),
      new_offset);
}