StormByte::Detail::Codec specialization for std::u16string.
More...
#include <StormByte/serializable.hxx>
|
| static ByteSize | Size (const std::u16string &data) noexcept |
| | Serialized size of data.
|
| |
| static BinaryData | Write (const std::u16string &data) noexcept |
| | Encodes data.
|
| |
| static Expected< std::u16string, DeserializeError > | Read (std::span< const std::byte > data) noexcept |
| | Decodes a UTF-16 string from the start of data.
|
| |
◆ Read()
◆ Size()
Serialized size of data.
- Parameters
-
- Returns
- Size in bytes as ByteSize.
◆ Write()
Encodes data.
- Parameters
-
- Returns
- Blob owned by Base.
The documentation for this struct was generated from the following file: