Example #1
0
        /// <summary>
        /// Reads a string from the stream, advancing the index accordingly
        /// </summary>
        /// <param name="length">The length of the string to be read</param>
        /// <returns>the string read from the stream</returns>
        public string ReadString(int length)
        {
            byte[] temp = new byte[length];
            _stream.Read(temp, 0, length);

            return(ByteConversion.GetString(temp));
        }