mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
feat(array): add TSBaseArray<T>::Ptr
This commit is contained in:
parent
90e0ab260d
commit
ac1f63906c
1 changed files with 12 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ class TSBaseArray {
|
|||
void CheckArrayBounds(uint32_t index) const;
|
||||
uint32_t Count() const;
|
||||
void Clear();
|
||||
T* Ptr();
|
||||
const T* Ptr() const;
|
||||
};
|
||||
|
||||
template <class T>
|
||||
|
|
@ -65,4 +67,14 @@ int32_t TSBaseArray<T>::MemLineNo() const {
|
|||
return -2;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
T* TSBaseArray<T>::Ptr() {
|
||||
return this->m_data;
|
||||
}
|
||||
|
||||
template <class T>
|
||||
const T* TSBaseArray<T>::Ptr() const {
|
||||
return this->m_data;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue