mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
32 lines
596 B
C
32 lines
596 B
C
|
|
#ifndef COMMON_DATA_STORE_H
|
||
|
|
#define COMMON_DATA_STORE_H
|
||
|
|
|
||
|
|
DECLARE_STRUCT(CDataStore__v_table);
|
||
|
|
DECLARE_STRUCT(CDataStore);
|
||
|
|
|
||
|
|
struct CDataStore__v_table{
|
||
|
|
void* fn_InternalInitialize;
|
||
|
|
void* fn_InternalDestroy;
|
||
|
|
void* fn_InternalFetchRead;
|
||
|
|
void* fn_InternalFetchWrite;
|
||
|
|
void* fn_destructor;
|
||
|
|
void* fn_IsRead;
|
||
|
|
void* fn_Reset;
|
||
|
|
void* fn_Finalize;
|
||
|
|
void* fn_GetBufferParams;
|
||
|
|
void* fn_DetachBuffer;
|
||
|
|
void* fn_GetHeaderSpace;
|
||
|
|
};
|
||
|
|
|
||
|
|
struct CDataStore {
|
||
|
|
CDataStore__v_table* v_table;
|
||
|
|
uint8_t* m_data;
|
||
|
|
uint32_t m_base;
|
||
|
|
uint32_t m_alloc;
|
||
|
|
uint32_t m_size;
|
||
|
|
uint32_t m_read;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|
||
|
|
|