mirror of
https://github.com/fraillt/bitsery.git
synced 2026-08-16 16:19:49 +00:00
ext function redesign and documentation
This commit is contained in:
@@ -27,11 +27,15 @@ struct MyStruct {
|
||||
uint32_t i;
|
||||
MyEnum e;
|
||||
std::vector<float> fs;
|
||||
char16_t x;
|
||||
bool y;
|
||||
};
|
||||
|
||||
//define how object should be serialized/deserialized
|
||||
SERIALIZE(MyStruct) {
|
||||
return s.
|
||||
value1(o.y).
|
||||
value2(o.x).
|
||||
value4(o.i).
|
||||
value2(o.e).
|
||||
container4(o.fs, 10);
|
||||
|
||||
Reference in New Issue
Block a user