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

Function EffectsBuffer_AddNewAttributeEffect

src/effects/effects.c:767–788  ·  view source on GitHub ↗

add an attribute addition effect to buffer

Source from the content-addressed store, hash-verified

765
766// add an attribute addition effect to buffer
767void EffectsBuffer_AddNewAttributeEffect
768(
769 EffectsBuffer *buff, // effect buffer
770 const char *attr // attribute name
771) {
772 //--------------------------------------------------------------------------
773 // effect format:
774 // effect type
775 // attribute name
776 //--------------------------------------------------------------------------
777
778 EffectType t = EFFECT_ADD_ATTRIBUTE;
779 EffectsBuffer_WriteBytes(&t, sizeof(t), buff);
780
781 //--------------------------------------------------------------------------
782 // write attribute name
783 //--------------------------------------------------------------------------
784
785 EffectsBuffer_WriteString(attr, buff);
786
787 EffectsBuffer_IncEffectCount(buff);
788}
789
790static inline void EffectsBufferBlock_Free
791(

Callers 1

FindOrAddAttributeFunction · 0.85

Calls 3

EffectsBuffer_WriteBytesFunction · 0.85

Tested by

no test coverage detected