StormByte::Detail::Codec specialization for std::wstring.
More...
#include <StormByte/serializable.hxx>
Static Public Member Functions | |
| static ByteSize | Size (const std::wstring &data) noexcept |
Serialized size of data. | |
| static BinaryData | Write (const std::wstring &data) noexcept |
Encodes data. | |
| static Expected< std::wstring, DeserializeError > | Read (std::span< const std::byte > data) noexcept |
Decodes a wide string from the start of data. | |
StormByte::Detail::Codec specialization for std::wstring.
Wire: uint64 UTF-8 byte count (LE) + UTF-8 payload. Host wchar_t width (2 on Windows, 4 on POSIX) never appears on the wire.
|
staticnoexcept |
Decodes a wide string from the start of data.
| data | Input span. |
|
staticnoexcept |
|
staticnoexcept |
Encodes data.
| data | Value to encode. |