Definition at line 11 of file serialize.cpp.
◆ Person() [1/2]
Person::Person |
( |
const std::string & | name, |
|
|
unsigned | age ) |
|
inline |
◆ Person() [2/2]
Person::Person |
( |
const Person & | rhs | ) |
|
|
inline |
Definition at line 14 of file serialize.cpp.
14: name_(rhs.name_), age_(rhs.age_) {}
◆ ~Person()
◆ operator=()
Definition at line 17 of file serialize.cpp.
17 {
18 name_ = rhs.name_;
19 age_ = rhs.age_;
20 return *this;
21 }
◆ Serialize()
void Person::Serialize |
( |
Writer & | writer | ) |
const |
|
inlineprotected |
Definition at line 25 of file serialize.cpp.
25 {
26
28#if RAPIDJSON_HAS_STDSTRING
30#else
31 writer.
String(name_.c_str(),
static_cast<SizeType>(name_.length()));
32#endif
35 }
bool String(const Ch *str, SizeType length, bool copy=false)
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.)
The documentation for this class was generated from the following file:
- libraries/fc/include/fc/crypto/webauthn_json/example/serialize/serialize.cpp