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

Function EffectsBuffer_AddBlock

src/effects/effects.c:56–64  ·  view source on GitHub ↗

add a new block to effects-buffer

Source from the content-addressed store, hash-verified

54
55// add a new block to effects-buffer
56static void EffectsBuffer_AddBlock
57(
58 EffectsBuffer *eb // effects-buffer
59) {
60 // create a new block and link
61 struct EffectsBufferBlock *b = EffectsBufferBlock_New(eb->block_size);
62 eb->current->next = b;
63 eb->current = b;
64}
65
66// write n bytes from ptr into block
67// returns actual number of bytes written

Callers 1

EffectsBuffer_WriteBytesFunction · 0.85

Calls 1

EffectsBufferBlock_NewFunction · 0.85

Tested by

no test coverage detected