ZipFile.h 411 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "../Common.h"
  3. #include "../Span.h"
  4. NS_BF_BEGIN
  5. class ZipFile
  6. {
  7. public:
  8. class Data;
  9. public:
  10. Data* mData;
  11. public:
  12. ZipFile();
  13. ~ZipFile();
  14. bool Open(const StringImpl& filePath);
  15. bool Create(const StringImpl& filePath);
  16. bool Close();
  17. bool IsOpen();
  18. bool Add(const StringImpl& fileName, Span<uint8> data);
  19. bool Get(const StringImpl& fileName, Array<uint8>& data);
  20. };
  21. NS_BF_END