Home
last modified time | relevance | path

Searched refs:allowed_range (Results 1 – 1 of 1) sorted by relevance

/external/libtextclassifier/native/lang_id/common/flatbuffers/
Dembedding-network-params-from-flatbuffer.cc28 bool IsPointerInRange(const char *ptr, StringPiece allowed_range) { in IsPointerInRange() argument
29 return (ptr >= allowed_range.data()) && in IsPointerInRange()
30 (ptr < (allowed_range.data() + allowed_range.size())); in IsPointerInRange()
39 StringPiece allowed_range) { in IsMemoryRangeValid() argument
45 return (start == nullptr) || IsPointerInRange(begin, allowed_range); in IsMemoryRangeValid()
48 return (begin <= inclusive_end) && IsPointerInRange(begin, allowed_range) && in IsMemoryRangeValid()
49 IsPointerInRange(inclusive_end, allowed_range); in IsMemoryRangeValid()