|
ランタイム
|
メモリ More...
Classes | |
| class | IBuffer |
| バッファインターフェース More... | |
| struct | SECTION_INFO |
| セクション情報構造体 More... | |
| class | STLAllocator |
| STL アロケータテンプレートクラス More... | |
Typedefs | |
| template<typename T > | |
| using | STLDefaultAllocator = STLAllocator< Mix::Memory::SECTION_USER, T > |
| STL のデフォルトアロケータ More... | |
Enumerations | |
| enum | SECTION_TYPE { SECTION_GENERAL = 0, SECTION_GRAPHICS = 1, SECTION_SOUND = 2, SECTION_DYNAMICS = 3, SECTION_SCENE = 4, SECTION_USER = 5 } |
| セクションタイプ列挙定数 More... | |
Functions | |
| _MIX_DLL_API Mix::Memory::SECTION_INFO | GetSectionInfo (UInt16 section) |
| セクションの情報を取得します More... | |
| _MIX_DLL_API void * | Allocate (UInt16 section, UIntT size, const wchar_t *pSrcFile, Int32 srcLine) |
| メモリを確保します More... | |
| _MIX_DLL_API void * | AllocateAligned (UInt16 section, UInt16 alignment, UIntT size, const wchar_t *pSrcFile, Int32 srcLine) |
| メモリを確保します More... | |
| _MIX_DLL_API void * | Reallocate (void *ptr, UIntT size, const wchar_t *pSrcFile, Int32 srcLine) |
| メモリを再確保します More... | |
| _MIX_DLL_API void | Free (void *ptr, const wchar_t *pSrcFile, Int32 srcLine) |
| メモリを解放します More... | |
| _MIX_DLL_API void | Copy (void *dst, const void *src, UIntT size) |
| メモリをコピーします More... | |
| _MIX_DLL_API void | Fill (void *ptr, UIntT size, UInt8 fill) |
| メモリ全体に指定した値を書き込みます More... | |
| _MIX_DLL_API void | Zero (void *ptr, UIntT size) |
| メモリ全体に 0 を書き込みます More... | |
| _MIX_DLL_API Boolean | CreateBuffer (UInt16 section, UIntT size, const void *pInitialData, Mix::Memory::IBuffer **ppBuffer) |
| バッファを作成します More... | |
メモリ
| using Mix::Memory::STLDefaultAllocator = typedef STLAllocator<Mix::Memory::SECTION_USER, T> |
STL のデフォルトアロケータ
| T | メモリを確保するインスタンスの型 |
| _MIX_DLL_API Mix::Memory::SECTION_INFO Mix::Memory::GetSectionInfo | ( | UInt16 | section | ) |
| _MIX_DLL_API void* Mix::Memory::Allocate | ( | UInt16 | section, |
| UIntT | size, | ||
| const wchar_t * | pSrcFile, | ||
| Int32 | srcLine | ||
| ) |
メモリを確保します
| [in] | section | セクション |
| [in] | size | 確保するメモリのサイズ |
| [in] | pSrcFile | メモリを確保したソースファイルのパス( FILEW ) |
| [in] | srcLine | メモリを確保したソースファイルの行( LINE ) |
| _MIX_DLL_API void* Mix::Memory::AllocateAligned | ( | UInt16 | section, |
| UInt16 | alignment, | ||
| UIntT | size, | ||
| const wchar_t * | pSrcFile, | ||
| Int32 | srcLine | ||
| ) |
メモリを確保します
| [in] | section | セクション |
| [in] | alignment | 確保するメモリのアラインメント( バイト単位 ) |
| [in] | size | 確保するメモリのサイズ( バイト単位 ) |
| [in] | pSrcFile | メモリを確保したソースファイルのパス( FILEW ) |
| [in] | srcLine | メモリを確保したソースファイルの行( LINE ) |
| _MIX_DLL_API void* Mix::Memory::Reallocate | ( | void * | ptr, |
| UIntT | size, | ||
| const wchar_t * | pSrcFile, | ||
| Int32 | srcLine | ||
| ) |
メモリを再確保します
| [in] | ptr | 再確保するメモリのポインタ |
| [in] | size | 再確保するサイズ |
| [in] | pSrcFile | メモリを確保したソースファイルのパス( FILEW ) |
| [in] | srcLine | メモリを確保したソースファイルの行( LINE ) |
| _MIX_DLL_API void Mix::Memory::Free | ( | void * | ptr, |
| const wchar_t * | pSrcFile, | ||
| Int32 | srcLine | ||
| ) |
メモリを解放します
| [in] | ptr | 解放するメモリのポインタ |
| [in] | pSrcFile | メモリを確保したソースファイルのパス( FILEW ) |
| [in] | srcLine | メモリを確保したソースファイルの行( LINE ) |
| _MIX_DLL_API void Mix::Memory::Copy | ( | void * | dst, |
| const void * | src, | ||
| UIntT | size | ||
| ) |
メモリをコピーします
| [in] | dst | コピー先のメモリのポインタ |
| [in] | src | コピー元のメモリのポインタ |
| [in] | size | コピーするサイズ |
| _MIX_DLL_API void Mix::Memory::Fill | ( | void * | ptr, |
| UIntT | size, | ||
| UInt8 | fill | ||
| ) |
メモリ全体に指定した値を書き込みます
| [in] | ptr | メモリのポインタ |
| [in] | size | メモリのサイズ |
| [in] | fill | メモリに書き込む値 |
| _MIX_DLL_API void Mix::Memory::Zero | ( | void * | ptr, |
| UIntT | size | ||
| ) |
メモリ全体に 0 を書き込みます
| [in] | ptr | メモリのポインタ |
| [in] | size | メモリのサイズ |
| _MIX_DLL_API Boolean Mix::Memory::CreateBuffer | ( | UInt16 | section, |
| UIntT | size, | ||
| const void * | pInitialData, | ||
| Mix::Memory::IBuffer ** | ppBuffer | ||
| ) |
バッファを作成します
| [in] | section | セクション |
| [in] | size | バッファのサイズ |
| [in] | pInitialData | バッファの初期データ( NULL指定可能 ) |
| [out] | ppBuffer | Mix::Memory::IBuffer インターフェースのポインタ |