| 87 | } |
| 88 | template <typename V> |
| 89 | auto 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. |
| 95 | inline unsigned char* UCharCast(char* c) { return reinterpret_cast<unsigned char*>(c); } |
no outgoing calls