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

Function EffectsBufferBlock_New

src/effects/effects.c:41–53  ·  view source on GitHub ↗

create a new effects-buffer block

Source from the content-addressed store, hash-verified

39
40// create a new effects-buffer block
41static struct EffectsBufferBlock *EffectsBufferBlock_New
42(
43 size_t n // size of block
44) {
45 size_t _n = sizeof(struct EffectsBufferBlock) + n;
46 struct EffectsBufferBlock *b = rm_malloc(_n);
47
48 b->cap = n;
49 b->next = NULL;
50 b->offset = b->buffer;
51
52 return b;
53}
54
55// add a new block to effects-buffer
56static void EffectsBuffer_AddBlock

Callers 2

EffectsBuffer_AddBlockFunction · 0.85
EffectsBuffer_NewFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected