Esempio n. 1
0
 void ReleaseByteBlock(ByteBlockPtr& block) final {
     if (block)
         available_ += block->size();
     block.reset();
 }
Esempio n. 2
0
 //! Release an unused ByteBlock with n bytes backing memory.
 virtual void ReleaseByteBlock(ByteBlockPtr& block) {
     block.reset();
 }
Esempio n. 3
0
 void ReleaseByteBlock(ByteBlockPtr& block) final {
     if (block)
         available_ += block->size();
     block = nullptr;
 }