void EnqueueBuffer(ByteBuffer buffer)
{
this.bufferQueueSize += buffer.Length;
this.bufferQueue.Enqueue(buffer);
if (this.bufferQueueSize >= this.writeQueueFullLimit && !this.isQueueFull)
{
this.isQueueFull = true;
this.parent.OnIoEvent(IoEvent.WriteBufferQueueFull, this.bufferQueueSize);
}
}