This is another way you can try. var buffer: ptr byte
var length: uint32 doAssert FreeImage_AcquireMemory(outmem, addr buffer, addr length).bool let cs = buffer[0 .. length - 1].cstring
This is another way you can try. var buffer: ptr byte
var length: uint32 doAssert FreeImage_AcquireMemory(outmem, addr buffer, addr length).bool let cs = buffer[0 .. length - 1].cstring