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

Function buffer_to_string

src/hx/CFFI.cpp:592–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590
591
592value buffer_to_string(buffer inBuffer)
593{
594 ByteArray b = (ByteArray) inBuffer;
595 String str(b->GetBase(),b->length);
596 Dynamic d(str);
597 return (value)d.GetPtr();
598}
599
600
601void buffer_append(buffer inBuffer,const char *inStr)

Callers 4

bufferToStringFunction · 0.85
valToStringFunction · 0.85
subBufferFunction · 0.85
charStringFunction · 0.85

Calls 1

GetPtrMethod · 0.80

Tested by

no test coverage detected