MCPcopy Create free account
hub / github.com/catboost/catboost / GetAllocPtr

Function GetAllocPtr

library/cpp/lfalloc/lf_allocX64.h:1318–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316static_assert(sizeof(TAllocHeader) == 16);
1317
1318static inline void* GetAllocPtr(TAllocHeader* p) {
1319 return p + 1;
1320}
1321
1322static inline TAllocHeader* GetAllocHeader(void* p) {
1323 return ((TAllocHeader*)p) - 1;

Callers 1

TrackAllocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected