Convert C array pointer to a D slice without data copy

ParticlePeter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 18 02:18:32 PDT 2015


I get the point to an array from a c function, the data size from 
another function. The data should be only readable at the D side, 
but I would like to use it as a D slice without copying the data. 
Is this possible ?





More information about the Digitalmars-d-learn mailing list