mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 20:30:01 +00:00
Doc fix verifier example code for cpp (#8664)
This commit is contained in:
@@ -419,7 +419,8 @@ Each root type will have a verification function generated for it,
|
|||||||
e.g. for `Monster`, you can call:
|
e.g. for `Monster`, you can call:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
bool ok = VerifyMonsterBuffer(Verifier(buf, len));
|
Verifier verifier(buf, len);
|
||||||
|
bool ok = VerifyMonsterBuffer(verifier);
|
||||||
```
|
```
|
||||||
|
|
||||||
if `ok` is true, the buffer is safe to read.
|
if `ok` is true, the buffer is safe to read.
|
||||||
|
|||||||
Reference in New Issue
Block a user