NW4F Snd
Loading...
Searching...
No Matches
nw::snd::internal::driver::StreamBufferPool Class Reference

#include <snd_StreamBufferPool.h>

Public Member Functions

void Initialize (void *pBuffer, size_t size, int blockCount)
void Finalize ()
void * Alloc ()
void Free (void *pPtr)
size_t GetBlockSize () const

Private Attributes

void * m_pBuffer
size_t m_BufferSize
size_t m_BlockSize
int m_BlockCount
int m_AllocCount
u8 m_AllocFlags [BLOCK_MAX/BIT_PER_BYTE]

Static Private Attributes

static const int BLOCK_MAX = 32
static const int BIT_PER_BYTE = 8

Member Function Documentation

◆ Initialize()

void nw::snd::internal::driver::StreamBufferPool::Initialize ( void * pBuffer,
size_t size,
int blockCount )

◆ Finalize()

void nw::snd::internal::driver::StreamBufferPool::Finalize ( )

◆ Alloc()

void * nw::snd::internal::driver::StreamBufferPool::Alloc ( )

◆ Free()

void nw::snd::internal::driver::StreamBufferPool::Free ( void * pPtr)

◆ GetBlockSize()

size_t nw::snd::internal::driver::StreamBufferPool::GetBlockSize ( ) const
inline

Member Data Documentation

◆ BLOCK_MAX

const int nw::snd::internal::driver::StreamBufferPool::BLOCK_MAX = 32
staticprivate

◆ BIT_PER_BYTE

const int nw::snd::internal::driver::StreamBufferPool::BIT_PER_BYTE = 8
staticprivate

◆ m_pBuffer

void* nw::snd::internal::driver::StreamBufferPool::m_pBuffer
private

◆ m_BufferSize

size_t nw::snd::internal::driver::StreamBufferPool::m_BufferSize
private

◆ m_BlockSize

size_t nw::snd::internal::driver::StreamBufferPool::m_BlockSize
private

◆ m_BlockCount

int nw::snd::internal::driver::StreamBufferPool::m_BlockCount
private

◆ m_AllocCount

int nw::snd::internal::driver::StreamBufferPool::m_AllocCount
private

◆ m_AllocFlags

u8 nw::snd::internal::driver::StreamBufferPool::m_AllocFlags[BLOCK_MAX/BIT_PER_BYTE]
private