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

Method UploadData

libs/drape/cpu_buffer.cpp:24–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void CPUBuffer::UploadData(void const * data, uint32_t elementCount)
25{
26 CHECK(elementCount == 0 || data != nullptr, (elementCount));
27 uint32_t byteCountToCopy = GetElementSize() * elementCount;
28#ifdef DEBUG
29 // Memory check
30 ASSERT(GetCursor() + byteCountToCopy <= Data() + m_memory->size(), ());
31#endif
32
33 memcpy(GetCursor(), data, byteCountToCopy);
34 TBase::UploadData(elementCount);
35}
36
37void CPUBuffer::Seek(uint32_t elementNumber)
38{

Callers

nothing calls this directly

Calls 3

ASSERTFunction · 0.85
DataClass · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected