InfinityMQ.Channels.Framing.Writers.BufferedOutStream.Write C# (CSharp) Method

Write() public method

public Write ( Byte buffer, Int32 offset, Int32 count ) : void
buffer Byte
offset System.Int32
count System.Int32
return void
        public override void Write(Byte[] buffer, Int32 offset, Int32 count)
        {
            lock (this.syncLock)
            {
                WaitOnPendingFlush();

                bufferStream.Write(buffer, offset, count);

                if (Length >= bufferSize)
                    Flush();
            }
        }