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