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

Function val_to_buffer

src/hx/CFFI.cpp:559–563  ·  view source on GitHub ↗

Byte arrays The byte array may be a string or a Array depending on implementation

Source from the content-addressed store, hash-verified

557// Byte arrays
558// The byte array may be a string or a Array<bytes> depending on implementation
559buffer val_to_buffer(hx::Object * arg1)
560{
561 ByteArray b = dynamic_cast< ByteArray >(arg1);
562 return (buffer)b;
563}
564
565bool val_is_buffer(value inVal) { return val_to_buffer((hx::Object *)inVal)!=0; }
566

Callers 5

appendStringFunction · 0.85
bufferToStringFunction · 0.85
val_is_bufferFunction · 0.85
getByteDataFunction · 0.85
resizeByteDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected