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

Function AsWritableBytes

src/span.h:258–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257template <typename T>
258Span<std::byte> AsWritableBytes(Span<T> s) noexcept
259{
260 return {BytePtr(s.data()), s.size_bytes()};
261}
262
263template <typename V>
264Span<const std::byte> MakeByteSpan(V&& v) noexcept

Callers 10

ser_readdata8Function · 0.85
ser_readdata16Function · 0.85
ser_readdata16beFunction · 0.85
ser_readdata32Function · 0.85
ser_readdata32beFunction · 0.85
ser_readdata64Function · 0.85
UnserializeFunction · 0.85
Unserialize_implFunction · 0.85
MakeWritableByteSpanFunction · 0.85
UnserializeMethod · 0.85

Calls 2

BytePtrFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected