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

Method AppendIndexes

libs/drape/index_buffer_mutator.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13void IndexBufferMutator::AppendIndexes(void const * indexes, uint32_t count)
14{
15 uint32_t dstActiveSize = m_activeSize + count;
16 if (dstActiveSize > m_buffer.Size())
17 m_buffer.Resize(std::max(m_buffer.Size() * 2, dstActiveSize));
18
19 memcpy(m_buffer.GetRaw(m_activeSize), indexes, count * IndexStorage::SizeOfIndex());
20 m_activeSize = dstActiveSize;
21}
22
23void const * IndexBufferMutator::GetIndexes() const
24{

Callers 1

GetElementIndexesMethod · 0.80

Calls 3

SizeMethod · 0.45
ResizeMethod · 0.45
GetRawMethod · 0.45

Tested by

no test coverage detected