public ByteBlock GetBlock() { if (block == null) { block = bytePool.Get(); } return(block); }
public ByteBlock GetSendingBlock() { if (isCreateSendingBlock()) { return(null); } if (block == null) { block = bytePool.Get(bufferSize); } createSendingBlock(block); exitCreateSendingBlock(); return(block); }