Example #1
0
 public bool Read(byte[] data)
 {
     try
     {
         using (FastStreamReader reader = new FastStreamReader(data))
         {
             if (reader.ReadInt32() != 1)
             {
                 return(false);
             }
             this.mAssemblyCount      = reader.ReadInt32();
             this.mAssemblySignatures = reader.ReadUInt64();
             this.mSourceDataHash     = reader.ReadUInt64();
             this.mSourceDataSize     = reader.ReadUInt64();
             this.mSourceRecordCount  = reader.ReadInt32();
         }
     }
     catch (System.IO.IOException)
     {
         return(false);
     }
     return(true);
 }