added ActiveMemoryBlockManager::GetData(int id)
This commit is contained in:
parent
56d98d65e2
commit
21e59f0337
@ -42,6 +42,8 @@ namespace hgl
|
|||||||
int WriteDataArray (void **da,const int *idp,const int count);
|
int WriteDataArray (void **da,const int *idp,const int count);
|
||||||
int WriteDataArray (void *da,const int *idp,const int count)const;
|
int WriteDataArray (void *da,const int *idp,const int count)const;
|
||||||
|
|
||||||
|
void *GetData(const int id)const;
|
||||||
|
|
||||||
bool GetData(void *,const int id)const;
|
bool GetData(void *,const int id)const;
|
||||||
bool GetData(void **da,const int *idp,const int count)const; ///<根据ID获取数据
|
bool GetData(void **da,const int *idp,const int count)const; ///<根据ID获取数据
|
||||||
bool GetData(void *da,const int *idp,const int count)const; ///<根据ID获取数据,并整齐排列到一起
|
bool GetData(void *da,const int *idp,const int count)const; ///<根据ID获取数据,并整齐排列到一起
|
||||||
|
@ -86,6 +86,14 @@ namespace hgl
|
|||||||
|
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void *ActiveMemoryBlockManager::GetData(const int id)const
|
||||||
|
{
|
||||||
|
if(!id||id<0||id>=aim.GetHistoryMaxId())
|
||||||
|
return(nullptr);
|
||||||
|
|
||||||
|
return (uint8 *)(data_mb->Get())+id*unit_size;
|
||||||
|
}
|
||||||
|
|
||||||
bool ActiveMemoryBlockManager::GetData(void *da,const int id)const
|
bool ActiveMemoryBlockManager::GetData(void *da,const int id)const
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user