Exemple #1
0
 public void Read(BundleReader reader)
 {
     if (HasBlobIndex(reader.Generation))
     {
         Offset     = reader.ReadInt64();
         Size       = reader.ReadInt64();
         BlobIndex  = reader.ReadInt32();
         NameOrigin = reader.ReadStringZeroTerm();
     }
     else
     {
         NameOrigin = reader.ReadStringZeroTerm();
         Offset     = reader.ReadInt32();
         Size       = reader.ReadInt32();
     }
     Name = FilenameUtils.FixFileIdentifier(NameOrigin);
 }
Exemple #2
0
 public void Read(BundleReader reader)
 {
     if (HasBlobIndex(reader.Signature))
     {
         Offset     = reader.ReadInt64();
         Size       = reader.ReadInt64();
         BlobIndex  = reader.ReadInt32();
         PathOrigin = reader.ReadStringZeroTerm();
     }
     else
     {
         PathOrigin = reader.ReadStringZeroTerm();
         Offset     = reader.ReadInt32();
         Size       = reader.ReadInt32();
     }
     Path = FilenameUtils.FixFileIdentifier(PathOrigin);
 }