I have a dart:ffi Struct that contains a pointer to a Char and int len
class UnnamedStruct1 extends ffi.Struct {
external ffi.Pointer<ffi.Char> ptr;
@ffi.Int()
external int len;
}
it is supposed to represent a String (later to parse as Uri)
how do I convert it to a string
you can create a function to convert the UnnamedStruct1 instance to a Dart String
This should do it