Helper to see if the identifier in a buffer has the expected value.
| 2259 | |
| 2260 | // Helper to see if the identifier in a buffer has the expected value. |
| 2261 | inline bool BufferHasIdentifier(const void *buf, const char *identifier, |
| 2262 | bool size_prefixed = false) { |
| 2263 | return strncmp(GetBufferIdentifier(buf, size_prefixed), identifier, |
| 2264 | FlatBufferBuilder::kFileIdentifierLength) == 0; |
| 2265 | } |
| 2266 | |
| 2267 | // Helper class to verify the integrity of a FlatBuffer |
| 2268 | class Verifier FLATBUFFERS_FINAL_CLASS { |
no test coverage detected