MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / val_buffer

Function val_buffer

src/hx/CFFI.cpp:650–661  ·  view source on GitHub ↗

Append value to buffer

Source from the content-addressed store, hash-verified

648
649// Append value to buffer
650void val_buffer(buffer inBuffer,value inValue)
651{
652 hx::Object *obj = (hx::Object *)inValue;
653 if (obj)
654 {
655 buffer_append(inBuffer, obj->toString().__CStr());
656 }
657 else
658 {
659 buffer_append_sub(inBuffer,"null",4);
660 }
661}
662
663
664

Callers 2

appendStringFunction · 0.85
valToStringFunction · 0.85

Calls 4

buffer_appendFunction · 0.85
buffer_append_subFunction · 0.85
__CStrMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected