On 13/03/2015 7:35 p.m., zhmt wrote:
ubyte[] arr ;I pass the arr.ptr to c program, it fails silently. Is there any way to cast a ubyte[] to a clang pointer?
Theoretically this should work. D: void func(ubyte[] value) { func(value.length, value.ptr); } extern(C) void func(size_t length, ubyte*); C: void func(size_t length, ubyte*) { // ... }