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

Function MakeWritableByteSpan

src/span.h:269–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268template <typename V>
269Span<std::byte> MakeWritableByteSpan(V&& v) noexcept
270{
271 return AsWritableBytes(Span{std::forward<V>(v)});
272}
273
274// Helper functions to safely cast to unsigned char pointers.
275inline unsigned char* UCharCast(char* c) { return (unsigned char*)c; }

Callers 5

UnserializeFunction · 0.85
UnserMethod · 0.85
UnserializeMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
ReadRawBlockFromDiskFunction · 0.85

Calls 1

AsWritableBytesFunction · 0.85

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68