MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / MakeWritableByteSpan

Function MakeWritableByteSpan

src/span.h:89–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88template <typename V>
89auto MakeWritableByteSpan(V&& v) noexcept
90{
91 return std::as_writable_bytes(std::span{std::forward<V>(v)});
92}
93
94// Helper functions to safely cast basic byte pointers to unsigned char pointers.
95inline unsigned char* UCharCast(char* c) { return reinterpret_cast<unsigned char*>(c); }

Callers 15

UnserializeFunction · 0.85
UnserMethod · 0.85
randbytesMethod · 0.85
rand256Method · 0.85
ReadMethod · 0.85
UnserializeMethod · 0.85
GenerateRandomGarbageFunction · 0.85
StartSendingHandshakeMethod · 0.85
SetMessageToSendMethod · 0.85
ToNum3072Method · 0.85

Calls

no outgoing calls

Tested by 5

BOOST_AUTO_TEST_CASEFunction · 0.68
ReceivePacketMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGETFunction · 0.68
FUZZ_TARGETFunction · 0.68