Central location where any verification failures register.
| 2282 | |
| 2283 | // Central location where any verification failures register. |
| 2284 | bool Check(bool ok) const { |
| 2285 | // clang-format off |
| 2286 | #ifdef FLATBUFFERS_DEBUG_VERIFICATION_FAILURE |
| 2287 | FLATBUFFERS_ASSERT(ok); |
| 2288 | #endif |
| 2289 | #ifdef FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE |
| 2290 | if (!ok) |
| 2291 | upper_bound_ = 0; |
| 2292 | #endif |
| 2293 | // clang-format on |
| 2294 | return ok; |
| 2295 | } |
| 2296 | |
| 2297 | // Verify any range within the buffer. |
| 2298 | bool Verify(size_t elem, size_t elem_len) const { |
no outgoing calls
no test coverage detected