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.

29 lines
464 B

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. namespace iflytop {
  7. typedef struct {
  8. const char* name;
  9. uint8_t* add;
  10. uint32_t size;
  11. } zhdb_table_t;
  12. class ZHDB {
  13. private:
  14. /* data */
  15. public:
  16. static void init();
  17. static zhdb_table_t* allocTable(const char* name, size_t size);
  18. static void storageData(uint8_t* data, size_t size);
  19. };
  20. } // namespace iflytop