MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / GetData

Method GetData

WinArk/MemoryBuffer.cpp:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16uint32_t MemoryBuffer::GetData(int64_t offset, uint8_t* buffer, uint32_t count) {
17 if (offset >= GetSize())
18 return 0;
19 if (count + offset > GetSize())
20 count = uint32_t(GetSize() - offset);
21 ::memcpy(buffer, _buffer.data() + offset, count);
22 return count;
23}
24
25bool MemoryBuffer::Insert(int64_t offset, const uint8_t* data, uint32_t count) {
26 _buffer.insert(_buffer.begin() + offset, data, data + count);

Callers 9

BuildConfigFromTreeMethod · 0.45
AddNodeMethod · 0.45
OnTimerMethod · 0.45
OnNodeExpandingMethod · 0.45
OnCloseCmdMethod · 0.45
DoPaintMethod · 0.45
CommitValueMethod · 0.45
OnCharMethod · 0.45
WriteEventDataMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected