Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
181
void ByteBuffer::resize(size_t size) {
182
if (size != capacity()) {
183
reallocate(size);
184
}
185
_size = size;
186
}
187
188
void ByteBuffer::shift(size_t size) {
189
auto newSize = this->size() - size;
Callers
15
read
Method · 0.45
loadFromFd
Method · 0.45
codePointToUTF8
Function · 0.45
utf32ToUtf16
Function · 0.45
toSTDString
Function · 0.45
newJavaStringUTF8
Function · 0.45
toByteArray
Function · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
compressData
Function · 0.45
TEST
Function · 0.45
Calls
no outgoing calls
Tested by
12
TEST
Function · 0.36
TEST
Function · 0.36
TEST
Function · 0.36
compressData
Function · 0.36
TEST
Function · 0.36
compressWithContentSize
Function · 0.36
doCall
Method · 0.36
TEST
Function · 0.36
testEncode
Method · 0.36
TestBitmap
Method · 0.36
generateGlyphVec
Function · 0.36
shape
Method · 0.36