| 267 | } |
| 268 | template <typename V> |
| 269 | Span<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. |
| 275 | inline unsigned char* UCharCast(char* c) { return (unsigned char*)c; } |