public override void Write(byte[] buffer, int offset, int count) { var ret = RingBuffer.Write(buffer, offset, count); if (ret != count) throw (new OverflowException()); } }