Wide text codec with the same UTF-8 wire layout as std::wstring.
More...
#include <StormByte/serializable.hxx>
Static Public Member Functions | |
| static ByteSize | Size (const Safe::WString &data) noexcept |
Serialized size of data. | |
| static BinaryData | Write (const Safe::WString &data) noexcept |
Encodes data. | |
| static Expected< Safe::WString, DeserializeError > | Read (std::span< const std::byte > data) noexcept |
| Decodes text. | |
Wide text codec with the same UTF-8 wire layout as std::wstring.
|
staticnoexcept |
Decodes text.
| data | Input bytes. |
|
staticnoexcept |
|
staticnoexcept |
Encodes data.
| data | Text to encode. |