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

Method copy

include/Array.h:1206–1211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204
1205template<typename ELEM_>
1206Array<ELEM_> Array_obj<ELEM_>::copy( )
1207{
1208 Array_obj *result = new Array_obj((int)length,0);
1209 ::memcpy(result->GetBase(),GetBase(),length*sizeof(ELEM_));
1210 return result;
1211}
1212
1213// Copies the range of the array starting at pos up to, but not including, end.
1214// Both pos and end can be negative to count from the end: -1 is the last item in the array.

Callers 5

GetClassFieldsMethod · 0.80
SLJIT_CALL runCopyFunction · 0.80
runObjectMethod · 0.80
runCopyMethod · 0.80
SLJIT_CALL runCopyFunction · 0.80

Calls 2

memcpyFunction · 0.85
GetBaseFunction · 0.70

Tested by

no test coverage detected