Skolson5903
09/03/2020, 12:10 AMbasher
09/03/2020, 12:33 AMreinterpret<ByteVar>()
to get it as a ByteVar. then you can use readBytes to get it into a ByteArray and decode that into a stringSkolson5903
09/03/2020, 12:41 AMval ptr = sqlite3_column_text(statementContext, index)!!.reinterpret<ByteVar>()
reinterpret shows red in IDE. without the reinterpret, ptr shows as type CPointer<UByteVar> so seems like above should work.basher
09/03/2020, 12:42 AMbasher
09/03/2020, 12:42 AMSkolson5903
09/03/2020, 12:42 AMbasher
09/03/2020, 12:43 AMmemScoped {
ptr.getPointer(this).reinterpret<ByteVar>()
}
Skolson5903
09/03/2020, 12:44 AMbasher
09/03/2020, 12:44 AMSkolson5903
09/03/2020, 12:44 AMbasher
09/03/2020, 12:44 AMSkolson5903
09/03/2020, 12:45 AM