convert *void to void[]

John C johnch_atms at hotmail.com
Wed May 6 02:24:03 PDT 2009


gabrielsylar Wrote:

> can anybody please tell me how to properly convert from void* to void[]
> as the code below?
> 
> void[] get_bytes(int n) { return sqlite3_column_blob(stmt, n); }

return sqlite3_column_blob(stmt, n)[0 .. n];


More information about the Digitalmars-d-learn mailing list