Exemple #1
0
        protected override int ReadCount(Stream s)
        {
            int c = new BinaryStreamWrapper(s, ByteOrder.BigEndian).ReadInt32();

            if (c < 0)
            {
                throw new InvalidDataException("Invalid Data List Count: " + c.ToString());
            }
            return(c);
        }