MCPcopy Create free account
hub / github.com/comaps/comaps / GoodPosAndSize

Method GoodPosAndSize

libs/coding/reader.hpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64private:
65 bool GoodPosAndSize(uint64_t pos, uint64_t size) const
66 {
67 // In case of 32-bit system, when sizeof(size_t) == 4.
68 return (pos + size <= Size() && size <= std::numeric_limits<size_t>::max());
69 }
70
71 void AssertPosAndSize(uint64_t pos, uint64_t size) const
72 {

Callers

nothing calls this directly

Calls 1

SizeFunction · 0.85

Tested by

no test coverage detected