public void Write(AssetsFileWriter writer)
 {
     writer.WriteNullTerminated(signature);
     writer.Write(fileVersion);
     writer.WriteNullTerminated(minPlayerVersion);
     writer.WriteNullTerminated(fileEngineVersion);
     writer.Write(totalFileSize);
     writer.Write(compressedSize);
     writer.Write(decompressedSize);
     writer.Write(flags);
 }
 public bool Write(AssetsFileWriter writer, ulong curFilePos /*, AssetsFileVerifyLogger errorLogger = NULL*/)
 {
     writer.Position = curFilePos;
     writer.WriteNullTerminated(signature);
     writer.Write(fileVersion);
     writer.WriteNullTerminated(minPlayerVersion);
     writer.WriteNullTerminated(fileEngineVersion);
     writer.Write(totalFileSize);
     writer.Write(compressedSize);
     writer.Write(decompressedSize);
     writer.Write(flags);
     return(true);
 }
Ejemplo n.º 3
0
        }//Minimum AssetsFile format : 6

        public ulong Write(ulong absFilePos, AssetsFileWriter writer, uint version)
        {
            writer.WriteNullTerminated(unityVersion);
            writer.Write(this.version);
            writer.Write(hasTypeTree);
            writer.Write(fieldCount);
            for (int i = 0; i < fieldCount; i++)
            {
                pTypes_Unity5[i].Write(hasTypeTree, writer.Position, writer, version);
            }
            if (version < 0x0E)
            {
                writer.WriteUInt24(dwUnknown);
            }
            return(writer.Position);
        }
Ejemplo n.º 4
0
 //Write doesn't compress
 public void Write(AssetsFileWriter writer)
 {
     writer.Write(checksumHigh);
     writer.Write(checksumLow);
     writer.Write(blockCount);
     for (int i = 0; i < blockCount; i++)
     {
         writer.Write(blockInf[i].decompressedSize);
         writer.Write(blockInf[i].compressedSize);
         writer.Write(blockInf[i].flags);
     }
     writer.Write(directoryCount);
     for (int i = 0; i < directoryCount; i++)
     {
         writer.Write(dirInf[i].offset);
         writer.Write(dirInf[i].decompressedSize);
         writer.Write(dirInf[i].flags);
         writer.WriteNullTerminated(dirInf[i].name);
     }
 }
Ejemplo n.º 5
0
 //Write doesn't compress
 public bool Write(AssetsFileWriter writer, ulong curFilePos /*, AssetsFileVerifyLogger errorLogger = NULL*/)
 {
     writer.Position = curFilePos;
     writer.Write(checksumHigh);
     writer.Write(checksumLow);
     writer.Write(blockCount);
     for (int i = 0; i < blockCount; i++)
     {
         writer.Write(blockInf[i].decompressedSize);
         writer.Write(blockInf[i].compressedSize);
         writer.Write(blockInf[i].flags);
     }
     writer.Write(directoryCount);
     for (int i = 0; i < directoryCount; i++)
     {
         writer.Write(dirInf[i].offset);
         writer.Write(dirInf[i].decompressedSize);
         writer.Write(dirInf[i].flags);
         writer.WriteNullTerminated(dirInf[i].name);
     }
     return(true);
 }