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

Method slice

include/Array.h:1216–1222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1214// Both pos and end can be negative to count from the end: -1 is the last item in the array.
1215template<typename ELEM_>
1216Array<ELEM_> Array_obj<ELEM_>::slice(int inPos, Dynamic end)
1217{
1218 int e = end==null() ? length : end->__ToInt();
1219 Array_obj *result = new Array_obj(0,0);
1220 hx::ArrayBase::Slice(result,inPos,(int)e);
1221 return result;
1222}
1223
1224template<typename ELEM_>
1225Array<ELEM_> Array_obj<ELEM_>::splice(int inPos, int len)

Callers 14

getByteCountMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45
codepointMethod · 0.45
isAsciiUtf16BufferFunction · 0.45
toAsciiStringFunction · 0.45
_hx_deflate_bufferFunction · 0.45
_hx_inflate_bufferFunction · 0.45
runMethod · 0.45
runMethod · 0.45
SLJIT_CALL arraySliceFunction · 0.45
runObjectMethod · 0.45

Calls 2

nullClass · 0.70
__ToIntMethod · 0.45

Tested by

no test coverage detected