Esempio n. 1
0
        protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
        {
            byte[] buf        = new byte[Size];
            int    amountRead = reader.Read(buf, 0, Size);

            if (amountRead != Size)
            {
                throw new InvalidOperationException("End of file reading padding (size " + Size + ")");
            }
        }
Esempio n. 2
0
 protected override void ProcessInternal(CustomBinaryReader reader, XmlWriter writer)
 {
     byte[] buf=new byte[Size];
     int amountRead=reader.Read(buf, 0, Size);
     if ( amountRead != Size )
         throw new InvalidOperationException("End of file reading padding (size "+Size+")");
 }