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

Method resize

valdi_core/src/valdi_core/cpp/Utils/ByteBuffer.cpp:181–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181void ByteBuffer::resize(size_t size) {
182 if (size != capacity()) {
183 reallocate(size);
184 }
185 _size = size;
186}
187
188void ByteBuffer::shift(size_t size) {
189 auto newSize = this->size() - size;

Callers 15

readMethod · 0.45
loadFromFdMethod · 0.45
codePointToUTF8Function · 0.45
utf32ToUtf16Function · 0.45
toSTDStringFunction · 0.45
newJavaStringUTF8Function · 0.45
toByteArrayFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
compressDataFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 12

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
compressDataFunction · 0.36
TESTFunction · 0.36
compressWithContentSizeFunction · 0.36
doCallMethod · 0.36
TESTFunction · 0.36
testEncodeMethod · 0.36
TestBitmapMethod · 0.36
generateGlyphVecFunction · 0.36
shapeMethod · 0.36