I work a lot with C functions, many of which yield pointer + length.
Is there a way to cast this or materialize a D-style array backed by the already allocated data (with length) to avoid copies which slow things down?
I recognize memory management is a complication. Typically, I would be responsible for free'ing the array later.
Thanks in advance