MCPcopy Create free account
hub / github.com/Snapchat/Valdi / shift

Method shift

valdi_core/src/valdi_core/cpp/Utils/ByteBuffer.cpp:188–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188void ByteBuffer::shift(size_t size) {
189 auto newSize = this->size() - size;
190 std::memmove(data(), data() + size, newSize);
191 _size = newSize;
192}
193
194void ByteBuffer::reallocate(size_t capacity) {
195 auto* newData = allocateBuffer(capacity);

Callers 15

readMethod · 0.45
nextMethod · 0.45
simpleUrlToAbsoluteMethod · 0.45
getWebviewPortMethod · 0.45
_appendStackTraceMethod · 0.45
_processQueueMethod · 0.45
loopFunction · 0.45
micromatch.jsFile · 0.45
normalizeArrayChildrenFunction · 0.45
webpackJsonpCallbackFunction · 0.45
TESTFunction · 0.45
main.tsxFile · 0.45

Calls 2

sizeMethod · 0.95
dataFunction · 0.85

Tested by 1

TESTFunction · 0.36