#include <sc_temporary.h>
Public メソッド | |
char * | allocate (int bytes_n) |
void | initialize (int heap_size=0x100000) |
unsigned int | length () |
sc_byte_heap () | |
sc_byte_heap (int heap_size) | |
~sc_byte_heap () | |
Public 変数 | |
char * | m_bgn_p |
char * | m_end_p |
char * | m_next_p |
sc_temporary.h の 87 行で定義されています。
sc_core::sc_byte_heap::sc_byte_heap | ( | ) | [inline] |
sc_core::sc_byte_heap::sc_byte_heap | ( | int | heap_size | ) | [inline] |
sc_core::sc_byte_heap::~sc_byte_heap | ( | ) | [inline] |
char* sc_core::sc_byte_heap::allocate | ( | int | bytes_n | ) | [inline] |
sc_temporary.h の 93 行で定義されています。
00094 { 00095 char* result_p; 00096 bytes_n = (bytes_n + 7) & 0xfffffff8; 00097 result_p = m_next_p; 00098 m_next_p += bytes_n; 00099 if ( m_next_p >= m_end_p ) 00100 { 00101 result_p = m_bgn_p; 00102 m_next_p = m_bgn_p + bytes_n; 00103 } 00104 return result_p; 00105 }
void sc_core::sc_byte_heap::initialize | ( | int | heap_size = 0x100000 |
) | [inline] |
unsigned int sc_core::sc_byte_heap::length | ( | ) | [inline] |
sc_temporary.h の 89 行で定義されています。
sc_temporary.h の 90 行で定義されています。
sc_temporary.h の 91 行で定義されています。