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

Function TSIOBufferStart

src/api/InkIOCoreAPI.cc:456–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

454}
455
456TSIOBufferBlock
457TSIOBufferStart(TSIOBuffer bufp)
458{
459 sdk_assert(sdk_sanity_check_iocore_structure(bufp) == TS_SUCCESS);
460
461 MIOBuffer *b = (MIOBuffer *)bufp;
462 IOBufferBlock *blk = b->get_current_block();
463
464 if (!blk || (blk->write_avail() == 0)) {
465 b->add_block();
466 }
467 blk = b->get_current_block();
468
469 // TODO: Remove when memory allocations can't fail.
470 sdk_assert(sdk_sanity_check_null_ptr((void *)blk) == TS_SUCCESS);
471
472 return (TSIOBufferBlock)blk;
473}
474
475int64_t
476TSIOBufferCopy(TSIOBuffer bufp, TSIOBufferReader readerp, int64_t length, int64_t offset)

Callers 12

psi_includeFunction · 0.85
loadFunction · 0.85
cache_handlerFunction · 0.85
loadFunction · 0.85
gzip_transform_oneFunction · 0.85
gzip_transform_finishFunction · 0.85
ts_lua_fetch_handlerFunction · 0.85

Calls 5

get_current_blockMethod · 0.80
write_availMethod · 0.45
add_blockMethod · 0.45