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

Function BytePtr

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

Convert a data pointer to a std::byte data pointer. Where possible, please use the safer AsBytes helpers.

Source from the content-addressed store, hash-verified

246//! Convert a data pointer to a std::byte data pointer.
247//! Where possible, please use the safer AsBytes helpers.
248inline const std::byte* BytePtr(const void* data) { return reinterpret_cast<const std::byte*>(data); }
249inline std::byte* BytePtr(void* data) { return reinterpret_cast<std::byte*>(data); }
250
251// From C++20 as_bytes and as_writeable_bytes

Callers 8

SerMethod · 0.85
UnserMethod · 0.85
AsBytesFunction · 0.85
AsWritableBytesFunction · 0.85
ReadKeyMethod · 0.85
ReadAtCursorMethod · 0.85
ReadAtCursorMethod · 0.85
ReadKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected