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

Method GetCurrentElementNumber

libs/drape/cpu_buffer.cpp:45–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45uint32_t CPUBuffer::GetCurrentElementNumber() const
46{
47 auto pointerDiff = static_cast<uint32_t>(GetCursor() - Data());
48 ASSERT(pointerDiff % GetElementSize() == 0, ());
49 return pointerDiff / GetElementSize();
50}
51
52unsigned char const * CPUBuffer::Data() const
53{

Callers 1

BatchDataMethod · 0.80

Calls 2

ASSERTFunction · 0.85
DataClass · 0.50

Tested by

no test coverage detected