@ArneBab on guile you can access the contents of a foreign pointer as a bytevector directly, no copy required.