Re: [E] [TSAPI] TSTxnAlloc

2023-12-06 Thread Walt Karas
Could we move Arena.h to tscpp/util, and just add: Arena & tsapi::txnArena(TSHttpTxn txn); For your finalizer example, when would that be better than using Cleanup.h? That is, when would it be better than having the vector be a data member of the TxnAuxData class you provide as a parameter to th

[TSAPI] TSTxnAlloc

2023-12-06 Thread Alan Carroll
Proposed Transaction based memory allocation API TSTxnAlloc ** Traffic Server Transaction based memory allocation. Synopsis .. code-block:: cpp #include .. function:: swoc::MemSpan TSTxnAlloc(TSHttpTxn txn, size_t bytes) .. function:: swoc::MemSpan TSTxnAllocAligned(TSHt