On 5/2/19 4:05 PM, ag0aep6g wrote:
Just slice the pointer with the length:

     int* ptr;
     size_t len;
     int[] arr = ptr[0 .. len];

Perfect thanks. I searched but without using the magic word "slice" I couldn't find meaningful results.

Thanks again.

Reply via email to