renamed to GetTotalBytes from GetBytes in many <>
This commit is contained in:
parent
3c382665ef
commit
ee2bf2b9b8
@ -29,7 +29,7 @@ namespace hgl
|
||||
AccumMemoryManager()=default;
|
||||
~AccumMemoryManager()=default;
|
||||
|
||||
const int64 GetTotalBytes()const{return data_array.GetBytes();} ///<取得总共申请的内存总字节数
|
||||
const int64 GetTotalBytes()const{return data_array.GetTotalBytes();} ///<取得总共申请的内存总字节数
|
||||
const int64 GetBlockCount()const{return block_list.GetCount();} ///<取得内存数据块数量
|
||||
|
||||
Block *Acquire(const int64 size) ///<申请一块内存
|
||||
@ -38,7 +38,7 @@ namespace hgl
|
||||
|
||||
Block *b=block_list.Add();
|
||||
|
||||
b->offset =data_array.GetBytes();
|
||||
b->offset =data_array.GetTotalBytes();
|
||||
b->size =size;
|
||||
|
||||
data_array.AddCount(size);
|
||||
|
@ -20,7 +20,7 @@ namespace hgl
|
||||
|
||||
int64 GetCount ()const{return count;} ///<取得数据数量(注:非字节数)
|
||||
const int64 GetAllocCount ()const{return alloc_count;} ///<取得已分配的阵列大小(注:非字节数)
|
||||
const int64 GetBytes ()const{return count*sizeof(T);} ///<取得阵列已使用的字节数
|
||||
const int64 GetTotalBytes ()const{return count*sizeof(T);} ///<取得阵列已使用的字节数
|
||||
const int64 GetAllocBytes ()const{return alloc_count*sizeof(T);} ///<取得阵列已分配空间字节数
|
||||
|
||||
const bool IsEmpty ()const{return(count==0);} ///<是否为空
|
||||
|
@ -25,7 +25,7 @@ namespace hgl
|
||||
const bool IsEmpty ()const{return data_array.IsEmpty();} ///<确认列表是否为空
|
||||
|
||||
T * GetData ()const{return data_array.GetData();} ///<提供原始数据项
|
||||
int GetBytes ()const{return data_array.GetBytes();} ///<取得原始数据总字节数
|
||||
int GetTotalBytes ()const{return data_array.GetTotalBytes();} ///<取得原始数据总字节数
|
||||
|
||||
T * begin ()const{return data_array.begin();}
|
||||
T * end ()const{return data_array.end();}
|
||||
|
@ -23,7 +23,7 @@ namespace hgl
|
||||
const bool IsEmpty ()const{return data_array.IsEmpty();} ///<确认列表是否为空
|
||||
|
||||
T * GetData ()const{return data_array.GetData();} ///<提供原始数据项
|
||||
int GetBytes ()const{return data_array.GetBytes();} ///<取得原始数据总字节数
|
||||
int GetTotalBytes ()const{return data_array.GetTotalBytes();} ///<取得原始数据总字节数
|
||||
|
||||
T * begin ()const{return data_array.begin();}
|
||||
T * end ()const{return data_array.end();}
|
||||
|
Loading…
x
Reference in New Issue
Block a user