You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
532 B

3 months ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <stdio.h>
  4. #include "uappbase/appdep.hpp"
  5. #include "project_configs.h"
  6. #define MAX_TABLE_NUM 10
  7. #define TABLE_BASE_VERSION APP_VERSION
  8. namespace iflytop {
  9. typedef struct {
  10. const char* name;
  11. uint8_t* add;
  12. uint32_t size;
  13. } zhdb_table_t;
  14. class ZHDB {
  15. private:
  16. /* data */
  17. public:
  18. static void init();
  19. static zhdb_table_t* allocTable(const char* name, size_t size);
  20. static void storageData(uint8_t* data, size_t size);
  21. };
  22. } // namespace iflytop