HikoGUI
A low latency retained GUI
|
#include <hikogui/codec/pickle.hpp>
Public Member Functions | |
datum | encode (T const &rhs) const noexcept |
Encode the value of a type into a UTF-8 string. | |
datum | encode (T const &rhs) const noexcept |
T | decode (datum rhs) const |
Decode a UTF-8 string into a value of a given type. | |
T | decode (datum rhs) const |
Encode and decode a type to and from a UTF-8 string.
This codec is used to serialize data into strings, for example in JSON configuration files.
|
inline |
Decode a UTF-8 string into a value of a given type.
rhs | The string to decode |
parse_error | When the decoded value is incorrect. |
|
inlinenoexcept |
Encode the value of a type into a UTF-8 string.
rhs | The value to encode |