CFileEntry.h 438 B

1234567891011121314151617181920
  1. #pragma once
  2. namespace WallpaperEngine::Assets
  3. {
  4. /**
  5. * File cache entry to prevent hit the disk when loading the same file multiple times
  6. */
  7. class CFileEntry
  8. {
  9. public:
  10. CFileEntry (const void* address, uint32_t length) :
  11. address (address),
  12. length (length) { }
  13. /** File contents */
  14. const void* address;
  15. /** File length */
  16. uint32_t length;
  17. };
  18. }