Cast ptr/len to D-style array
James Blachly
james.blachly at gmail.com
Thu May 2 20:03:04 UTC 2019
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
More information about the Digitalmars-d-learn
mailing list