MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / builtin_array_resize

Function builtin_array_resize

src/builtin/module_builtin_array.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void builtin_array_resize ( Array & pArray, int newSize, int stride, Context * context, LineInfoArg * at ) {
48 if ( newSize<0 ) context->throw_error_at(at, "resizing array to negative size %i", newSize);
49 array_resize ( *context, pArray, newSize, stride, /*zero*/ true, at );
50 }
51
52 void builtin_array_resize_no_init ( Array & pArray, int newSize, int stride, Context * context, LineInfoArg * at ) {
53 if ( newSize<0 ) context->throw_error_at(at, "resizing array to negative size %i", newSize);

Callers 5

fft_real_forwardFunction · 0.85
fft_calculate_magnitudesFunction · 0.85
fft_real_inverseFunction · 0.85

Calls 2

array_resizeFunction · 0.85
throw_error_atMethod · 0.80

Tested by

no test coverage detected