|Newbie questions about Pliant
Dynamic Pliant Arrays to C arrays.
Is there a convenient way of converting Pliant dynamic arrays to C compatible arrays?
|Message posted by mujtaba on 2003/01/31 20:52:12
|Is there a convenient way of converting Pliant dynamic arrays to C compatible
arrays? Especially for arrays of native and packed data types? I thought perhaps
that Pliant internally stores arrays in the same fashion that C does and that
there would be a way to access a pointer to that data. Then again, being dynamic
could not garuntee that all array elements would form a contiguous, packed
For my purpose however, the arrays' size is determined at initialization and does
not need to remain dynamic throughout the rest of the execution.
For now, I'll try allocating a new buffer and copying the dynamic array one
element at a time to create a temporary packed array to pass into my wrapper
function - like one would expect to do in the familiar C.
|Message posted by mujtaba on 2003/01/31 21:49:20
|Nevermind. It was the "first" method which brings the address to the first element
in the array. Thanks anyways.