MCPcopy Create free account
hub / github.com/ElementsProject/elements / Reset

Method Reset

src/net.h:347–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 int readData(Span<const uint8_t> msg_bytes);
346
347 void Reset() {
348 vRecv.clear();
349 hdrbuf.clear();
350 hdrbuf.resize(24);
351 in_data = false;
352 nHdrPos = 0;
353 nDataPos = 0;
354 data_hash.SetNull();
355 hasher.Reset();
356 }
357
358public:
359 V1TransportDeserializer(const CChainParams& chain_params, const NodeId node_id, int nTypeIn, int nVersionIn)

Callers

nothing calls this directly

Calls 3

clearMethod · 0.45
resizeMethod · 0.45
SetNullMethod · 0.45

Tested by

no test coverage detected