Scheme provides a bytevector
type which can be used to do low-level operations on bytes abd array of bytes (see r6rs and chez manual). However, it does not seem to provide a way to retrieve the underlying pointer to the array of bytes it is storing and I need that pointer to pass to foreign C functions to fill or read data from the bytevector.
To be more precise about the context, I am trying to write some code for low-level handling of bytes in Idris2 which is using Scheme as its backend, but I am a newbie in Scheme so I am certainly overlooking something obvious: What's the preferred approach to extract this pointer from the bytevector?