SpiecsEngine
 
Loading...
Searching...
No Matches

◆ build()

void scl::runtime_memory_block::build ( )

Malloc a memory to begin_.

Free the memory if begin_ has mallocked.

Malloc memory to begin_ with bytes_.

Free the memory if begin_ has mallocked.

Malloc memory to begin_ with bytes_.

Definition at line 46 of file RuntimeMemoryBlock.cpp.

47 {
51 if(begin_) free(begin_);
52
56 begin_ = malloc(bytes_);
57 }
size_t bytes_
The bytes of the continue memory block handled.
void * begin_
The begin pointer of the continue memory block handled.

References begin_.

Referenced by SpicesTest::TEST_F(), and SpicesTest::TEST_F().