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 >

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

2020-09-15 Thread Sage Gerard
The docs for [make-sized-byte-string](https://docs.racket-lang.org/foreign/foreign_pointer-funcs.html?q=free#%28def._%28%28quote._~23~25foreign%29._make-sized-byte-string%29%29) indicate that CS does not support this operation. I'm guessing I just need to fall back to building a loop using