MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / DataBlockIterator_New

Function DataBlockIterator_New

src/util/datablock/datablock_iterator.c:14–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <stdbool.h>
13
14DataBlockIterator *DataBlockIterator_New
15(
16 Block *block,
17 uint64_t block_cap,
18 uint64_t end_pos
19) {
20 ASSERT(block);
21
22 DataBlockIterator *iter = rm_malloc(sizeof(DataBlockIterator));
23
24 iter->_start_block = block;
25 iter->_current_block = block;
26 iter->_block_pos = 0;
27 iter->_block_cap = block_cap;
28 iter->_current_pos = 0;
29 iter->_end_pos = end_pos;
30 return iter;
31}
32
33void *DataBlockIterator_Next
34(

Callers 2

DataBlock_ScanFunction · 0.85
DataBlock_FullScanFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected