Re: [racket-users] Writing make-sized-byte-string alternative on CS

2020-09-15 Thread Sage Gerard
Thank you for the rapid response! ~slg ‐‐‐ Original Message ‐‐‐ On Tuesday, September 15, 2020 5:15 PM, Matthew Flatt wrote: > You use `make-bytes` and `memcpy`, instead of writing a new loop. (The > non-copying part of `make-sized-byte-string` is what CS can't support.) > > Matthew >

Re: [racket-users] Writing make-sized-byte-string alternative on CS

2020-09-15 Thread Matthew Flatt
You use `make-bytes` and `memcpy`, instead of writing a new loop. (The non-copying part of `make-sized-byte-string` is what CS can't support.) Matthew At Tue, 15 Sep 2020 21:12:22 +, Sage Gerard wrote: > The docs for > [make-sized-byte-string](https://docs.racket-lang.org/foreign/foreign_poi