public byte[] this[int file] { get { if (file > FileCount) { throw new ArgumentException(); } if (Storage[file] == null) { Storage[file] = new GARCEntry(getFile(file, 0)); } return(Storage[file].Data); } set { if (Storage[file] == null) { Storage[file] = new GARCEntry(value); } Storage[file].Data = value; Storage[file].Saved = true; } }
public lzGARC(byte[] data) { Data = data; garc = unpackGARC(data); Storage = new GARCEntry[FileCount]; }
public byte[] this[int file] { get { if (file > FileCount) throw new ArgumentException(); if (Storage[file] == null) Storage[file] = new GARCEntry(getFile(file, 0)); return Storage[file].Data; } set { if (Storage[file] == null) Storage[file] = new GARCEntry(value); Storage[file].Data = value; Storage[file].Saved = true; } }