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

Function deallocateBuffer

valdi_core/src/valdi_core/cpp/Utils/ByteBuffer.cpp:14–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12constexpr size_t kMinAllocationSize = sizeof(size_t);
13
14static inline void deallocateBuffer(Byte* buffer) {
15 free(buffer); // NOLINT(cppcoreguidelines-no-malloc)
16}
17
18static inline Byte* allocateBuffer(size_t size) {
19 if (size == 0) {

Callers 3

~ByteBufferMethod · 0.85
ByteBuffer.cppFile · 0.85
reallocateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected