Cpointer -> flvector?

Once I have a pointer to a memory block from the ffi (allocated in a shared memory space), is there a way to turn it into a standard racket flvector? I see there's a flvector->cpointer, but not the converse.

Probably not, for the reasons discussed here:

Ouch, that's not very promising indeed :confused: Thanks!

You might be able to use _f64vector from ffi/vector, though!

True, but that won't help me much.

The idea was to re-use all my functions defined for flvectors without having to change all the flvector-ref, etc.

Also, _f64vector uses _double*, which is slower than _double AFAIR.

(what's happening with Discourse's markdown?)