예제 #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 + ")");
            }
        }
예제 #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+")");
 }