MCPcopy Create free account
hub / github.com/citp/BlockSci / RawInput

Method RawInput

tools/parser/preproccessed_block.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41
42#ifdef BLOCKSCI_FILE_PARSER
43RawInput::RawInput(SafeMemReader &reader) : utxo{} {
44 rawOutputPointer.hash = reader.readNext<blocksci::uint256>();
45 uint32_t rawOutputNum = reader.readNext<uint32_t>();
46 rawOutputPointer.outputNum = static_cast<uint16_t>(rawOutputNum);
47 scriptLength = reader.readVariableLengthInteger();
48 scriptBegin = reinterpret_cast<const unsigned char*>(reader.unsafePos());
49 reader.advance(scriptLength);
50 sequenceNum = reader.readNext<SequenceNum>();
51}
52
53void RawInput::readWitnessStack(SafeMemReader &reader) {
54 auto stackItemCount = reader.readVariableLengthInteger();

Callers

nothing calls this directly

Calls 5

uint256SFunction · 0.85
unsafePosMethod · 0.80
advanceMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected