ezEngine  Release 25.03
ezDataBlock< T, SizeInBytes > Struct Template Reference

This struct represents a block of type T, typically 4kb. More...

#include <LargeBlockAllocator.h>

Public Types

enum  { SIZE_IN_BYTES = SizeInBytes, CAPACITY = SIZE_IN_BYTES / sizeof(T) }
 

Public Member Functions

 EZ_DECLARE_POD_TYPE ()
 
 ezDataBlock (T *pData, ezUInt32 uiCount)
 
T * ReserveBack ()
 
T * PopBack ()
 
bool IsEmpty () const
 
bool IsFull () const
 
T & operator[] (ezUInt32 uiIndex) const
 

Public Attributes

T * m_pData
 
ezUInt32 m_uiCount
 

Detailed Description

template<typename T, ezUInt32 SizeInBytes>
struct ezDataBlock< T, SizeInBytes >

This struct represents a block of type T, typically 4kb.


The documentation for this struct was generated from the following files: