Exemplo n.º 1
0
 public void Write(RpkgEntryInfo entryInfo)
 {
     Write(entryInfo.Signature);
     Write(entryInfo.AdditionalDataSize);
     Write(entryInfo.StateDataSize);
     Write(entryInfo.DecompressedDataSize);
     Write(entryInfo.SystemMemoryRequirement);
     Write(entryInfo.VideoMemoryRequirement);
     Write(entryInfo.AdditionalData);
     Write(entryInfo.StateData);
 }
        public RpkgEntryInfo ReadEntryInfo()
        {
            RpkgEntryInfo entryInfo = new RpkgEntryInfo();

            entryInfo.Signature               = new string(ReadChars(4));
            entryInfo.AdditionalDataSize      = ReadUInt32();
            entryInfo.StateDataSize           = ReadUInt32();
            entryInfo.DecompressedDataSize    = ReadUInt32();
            entryInfo.SystemMemoryRequirement = ReadUInt32();
            entryInfo.VideoMemoryRequirement  = ReadUInt32();
            entryInfo.AdditionalData          = ReadBytes((int)entryInfo.AdditionalDataSize);
            entryInfo.StateData               = ReadBytes((int)entryInfo.StateDataSize);

            return(entryInfo);
        }