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

Function sdk_sanity_check_mbuffer

src/api/InkAPI.cc:402–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402TSReturnCode
403sdk_sanity_check_mbuffer(TSMBuffer bufp)
404{
405 HdrHeapSDKHandle *handle = reinterpret_cast<HdrHeapSDKHandle *>(bufp);
406 if ((handle == nullptr) || (handle->m_heap == nullptr) || (handle->m_heap->m_magic != HDR_BUF_MAGIC_ALIVE)) {
407 return TS_ERROR;
408 }
409
410 return TS_SUCCESS;
411}
412
413TSReturnCode
414sdk_sanity_check_mime_hdr_handle(TSMLoc field)

Callers 15

sdk_free_field_handleFunction · 0.85
TSHandleMLocReleaseFunction · 0.85
TSMBufferCreateFunction · 0.85
TSMBufferDestroyFunction · 0.85
TSUrlCreateFunction · 0.85
TSUrlCloneFunction · 0.85
TSUrlCopyFunction · 0.85
TSUrlPrintFunction · 0.85
TSUrlParseFunction · 0.85
TSUrlLengthGetFunction · 0.85
TSUrlStringGetFunction · 0.85
URLPartGetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected