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

Function buffer_append

src/hx/CFFI.cpp:601–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599
600
601void buffer_append(buffer inBuffer,const char *inStr)
602{
603 ByteArray b = (ByteArray)inBuffer;
604 int olen = b->length;
605 int len = strlen(inStr);
606 b->__SetSize(olen+len);
607 memcpy(b->GetBase()+olen,inStr,len);
608
609}
610
611
612int buffer_size(buffer inBuffer)

Callers 1

val_bufferFunction · 0.85

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected