MCPcopy Create free account
hub / github.com/apache/trafficserver / TSMBufferCreate

Function TSMBufferCreate

src/api/InkAPI.cc:872–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870// TSMBuffer: pointers to HdrHeapSDKHandle objects
871
872TSMBuffer
873TSMBufferCreate()
874{
875 TSMBuffer bufp;
876 HdrHeapSDKHandle *new_heap = new HdrHeapSDKHandle;
877
878 new_heap->m_heap = new_HdrHeap();
879 bufp = reinterpret_cast<TSMBuffer>(new_heap);
880 // TODO: Should remove this when memory allocation is guaranteed to fail.
881 sdk_assert(sdk_sanity_check_mbuffer(bufp) == TS_SUCCESS);
882 return bufp;
883}
884
885TSReturnCode
886TSMBufferDestroy(TSMBuffer bufp)

Callers 15

TSPluginInitFunction · 0.85
TSPluginInitFunction · 0.85
setup_requestFunction · 0.85
handleFetchEventsFunction · 0.85
RequestMethod · 0.85
HeadersStateMethod · 0.85

Calls 2

new_HdrHeapFunction · 0.85
sdk_sanity_check_mbufferFunction · 0.85