Update flexbuffers.md

This commit is contained in:
liuzicheng1987
2023-11-12 21:01:15 +01:00
committed by GitHub
parent 992115c6a0
commit 216e5bd629
+4 -1
View File
@@ -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