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
30 lines
502 B
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdio.h>
|
|
|
|
#include "uappbase/appdep.hpp"
|
|
|
|
#define MAX_TABLE_NUM 10
|
|
#define TABLE_BASE_VERSION 0xAABBCCDE
|
|
|
|
namespace iflytop {
|
|
|
|
typedef struct {
|
|
const char* name;
|
|
uint8_t* add;
|
|
uint32_t size;
|
|
} zhdb_table_t;
|
|
|
|
class ZHDB {
|
|
private:
|
|
/* data */
|
|
|
|
|
|
public:
|
|
static void init();
|
|
static zhdb_table_t* allocTable(const char* name, size_t size);
|
|
static void storageData(uint8_t* data, size_t size);
|
|
};
|
|
|
|
} // namespace iflytop
|