MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / VerifyString

Function VerifyString

native/thirdpart/flatbuffers/flatbuffers.h:2350–2356  ·  view source on GitHub ↗

Verify a pointer (may be NULL) to string.

Source from the content-addressed store, hash-verified

2348
2349 // Verify a pointer (may be NULL) to string.
2350 bool VerifyString(const String *str) const {
2351 size_t end;
2352 return !str || (VerifyVectorOrString(reinterpret_cast<const uint8_t *>(str),
2353 1, &end) &&
2354 Verify(end, 1) && // Must have terminator
2355 Check(buf_[end] == '\0')); // Terminating byte must be 0.
2356 }
2357
2358 // Common code between vectors and strings.
2359 bool VerifyVectorOrString(const uint8_t *vec, size_t elem_size,

Callers 1

VerifyVectorOfStringsFunction · 0.85

Calls 3

VerifyVectorOrStringFunction · 0.85
CheckFunction · 0.85
VerifyFunction · 0.70

Tested by

no test coverage detected