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