MCPcopy Create free account
hub / github.com/dengwirda/jigsaw / push_block

Method push_block

src/libcpp/allocators/alloc_pool.hpp:123–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 */
122
123 __inline_call void_type push_block ( // push new buffer
124 )
125 {
126 /*------------------------- allocate new buffer item */
127 char_type *_this_slab =
128 (char_type *)base_type
129 ::allocate(__slabbytes);
130
131 /*------------------------- push new buffer onto list */
132 __nextblock(_this_slab)= this->_block;
133
134 this->_alloc = _this_slab +
135 this->_slab_size*this->_item_size;
136 this->_block = _this_slab ;
137 this->_shift = _this_slab ;
138 }
139
140 /*
141 --------------------------------------------------------

Callers

nothing calls this directly

Calls 1

allocateFunction · 0.85

Tested by

no test coverage detected