Пример #1
0
 public void Init(BufferBlock bb, SmallBufferPool <T> pool)
 {
     this.ReturnBlock();
     this.bufferBlock = bb;
     this.poolRef     = pool;
     this.bufferRef   = pool.buffer;
 }
Пример #2
0
 public void SetInvalid()
 {
     this.bufferBlock.blockIndex = -1;
     this.poolRef   = null;
     this.bufferRef = null;
 }
Пример #3
0
 public void UnInit()
 {
     this.poolRef   = null;
     this.bufferRef = null;
 }