memory/array question

Eric via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 31 12:37:26 PDT 2014


Suppose I have some memory allocated on the heap, and I have
two pointers pointing to the beginning and end of a contiguous 
segment
of that memory.  Is there a way I can convert those two pointers
to an array slice without actually copying anything within the 
segment?

Thx,
Eric


More information about the Digitalmars-d-learn mailing list