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

Method AssertPosAndSize

libs/coding/reader.hpp:71–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 void AssertPosAndSize(uint64_t pos, uint64_t size) const
72 {
73 if constexpr (WithExceptions)
74 {
75 if (!GoodPosAndSize(pos, size))
76 MYTHROW(Reader::SizeException, (pos, size, Size()));
77 }
78 else
79 {
80 ASSERT(GoodPosAndSize(pos, size), (pos, size, Size()));
81 }
82 }
83
84 char const * m_pData;
85 size_t m_size;

Callers

nothing calls this directly

Calls 2

SizeFunction · 0.85
ASSERTFunction · 0.85

Tested by

no test coverage detected