mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-03 08:46:19 +08:00
Update flexbuffers.md
This commit is contained in:
+4
-1
@@ -238,7 +238,10 @@ const rfl::Result<Person> result = rfl::flexbuf::read<Person>(bytes);
|
||||
You can also load and save to disc using a very similar syntax:
|
||||
|
||||
```cpp
|
||||
...
|
||||
const rfl::Result<Person> result = rfl::flexbuf::load<Person>("/path/to/file.fb");
|
||||
|
||||
const auto person = Person{...};
|
||||
rfl::flexbuf::save("/path/to/file.fb", person);
|
||||
```
|
||||
|
||||
## Custom constructors
|
||||
|
||||
Reference in New Issue
Block a user