Microsoft.Protocols.TestSuites.Common.BufferReader.BufferReader C# (CSharp) Method

BufferReader() public method

Initializes a new instance of the BufferReader class.
public BufferReader ( byte buffer ) : System
buffer byte The buffer being read.
return System
        public BufferReader(byte[] buffer)
        {
            if (buffer == null)
            {
                throw new Exception("buffer can't be null");
            }

            this.buffer = buffer;
            this.length = (uint)buffer.Length;
            this.position = 0;
        }