Exemplo n.º 1
0
        // Overloaded Read for composite types

        /// <summary>
        /// Decodes an array of bytes out of the underlying buffer.
        /// </summary>
        public void Read(out byte[] value)
        {
            int length;

            ReadNonnegative(out length);
            buffer.CheckLengthToRead(length);
            value = new byte[length];
            buffer.Read(value, 0, length);
        }