Aegis.IO.StreamBuffer.Write C# (CSharp) Method

Write() public method

public Write ( byte source ) : void
source byte
return void
        public void Write(byte source)
        {
            int srcSize = sizeof(byte);
            if (WrittenBytes + srcSize > BufferSize)
                Resize(BufferSize + srcSize);

            Buffer[WrittenBytes] = source;
            WrittenBytes += srcSize;

            OnWritten();
        }

Same methods

StreamBuffer::Write ( StreamBuffer source ) : void
StreamBuffer::Write ( StreamBuffer source, int sourceIndex ) : void
StreamBuffer::Write ( StreamBuffer source, int sourceIndex, int length ) : void
StreamBuffer::Write ( byte source, int sourceIndex ) : void
StreamBuffer::Write ( byte source, int sourceIndex, int length ) : void
StreamBuffer::Write ( char source ) : void
StreamBuffer::Write ( int size ) : void

Usage Example

Beispiel #1
0
        public static int PutDouble(StreamBuffer destination, double var)
        {
            int prevIndex = destination.WrittenBytes;

            destination.Write(BitConverter.GetBytes(var));
            return(prevIndex);
        }
All Usage Examples Of Aegis.IO.StreamBuffer::Write