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.

30 lines
502 B

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