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.
James Blachly via Digitalmars-d-learn Thu, 02 May 2019 20:26:08 -0700
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.