@Chunks.h 904 B

12345678910111213141516171819202122
  1. /******************************************************************************/
  2. class Chunks
  3. {
  4. Memc<Chunk> chunks;
  5. static int Compare(C Chunk &a, C Chunk &b);
  6. Chunk* findChunk(C Str &name);
  7. Chunks& delChunk(C Str &name);
  8. Chunks& setChunk(C Str &name, uint ver, File&file);
  9. void del();
  10. // io
  11. bool load(File &f);
  12. bool save(File &f); // warning: this sorts 'chunks' and changes memory addresses for each element
  13. bool load(C Str &name, ReadWriteSync &rws);
  14. bool save(C Str &name, ReadWriteSync &rws); // warning: this sorts 'chunks' and changes memory addresses for each element
  15. };
  16. /******************************************************************************/
  17. /******************************************************************************/
  18. /******************************************************************************/