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

Function api_val_to_buffer

include/hx/CFFINekoLoader.h:245–248  ·  view source on GitHub ↗

Byte arrays - use strings

Source from the content-addressed store, hash-verified

243
244// Byte arrays - use strings
245neko_buffer api_val_to_buffer(neko_value arg1)
246{
247 return (neko_buffer)api_val_string(arg1);
248}
249bool api_val_is_buffer(neko_value arg1) { return neko_val_is_string(arg1); }
250int api_buffer_size(neko_buffer inBuffer) { return neko_val_strlen((neko_value)inBuffer); }
251char * api_buffer_data(neko_buffer inBuffer) { return (char *)api_val_string((neko_value)inBuffer); }

Callers

nothing calls this directly

Calls 1

api_val_stringFunction · 0.85

Tested by

no test coverage detected