StormByte::Detail::Codec specialization for std::string.
More...
#include <StormByte/serializable.hxx>
|
| static ByteSize | Size (const std::string &data) noexcept |
| | Serialized size of data.
|
| |
| static BinaryData | Write (const std::string &data) noexcept |
| | Encodes data.
|
| |
| static Expected< std::string, DeserializeError > | Read (std::span< const std::byte > data) noexcept |
| | Decodes a string from the start of data.
|
| |
StormByte::Detail::Codec specialization for std::string.
Wire: uint64 byte count (LE) + raw bytes. No encoding transform.
◆ 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: