monkey_ has quit [Remote host closed the connection]
monkey_ has joined #racket
sagax has quit [Ping timeout: 244 seconds]
sagax has joined #racket
jeosol has quit [Quit: Client closed]
monkey_ has quit [Remote host closed the connection]
skapata has quit [Remote host closed the connection]
jeosol has joined #racket
ur5us has quit [Ping timeout: 244 seconds]
badkins has joined #racket
parnikkapore has joined #racket
parnikkapore has quit [Client Quit]
badkins has quit [Ping timeout: 265 seconds]
jao has quit [Ping timeout: 268 seconds]
ur5us has joined #racket
ur5us has quit [Remote host closed the connection]
ur5us has joined #racket
notzmv has quit [Ping timeout: 244 seconds]
ur5us has quit [Ping timeout: 250 seconds]
skapata has joined #racket
codingquark has quit [Read error: Connection reset by peer]
codingquark has joined #racket
notzmv has joined #racket
ec has quit [Ping timeout: 258 seconds]
ec has joined #racket
jao has joined #racket
skapata has quit [Read error: Connection reset by peer]
jao has quit [Ping timeout: 264 seconds]
badkins has joined #racket
ec has quit [Ping timeout: 258 seconds]
ec has joined #racket
jao has joined #racket
ec has quit [Remote host closed the connection]
ec has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
ec has quit [Ping timeout: 258 seconds]
ur5us has joined #racket
ec has joined #racket
ec has quit [Remote host closed the connection]
ec has joined #racket
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #racket
codaraxis has joined #racket
skapata has joined #racket
ur5us has quit [Ping timeout: 246 seconds]
badkins has quit [Remote host closed the connection]
Everything has joined #racket
ec has quit [Ping timeout: 258 seconds]
ec has joined #racket
badkins has joined #racket
badkins has quit [Remote host closed the connection]
lagash has quit [Ping timeout: 244 seconds]
lagash has joined #racket
badkins has joined #racket
ur5us has joined #racket
<jA_cOp>
I have an instance of a C struct with a pointer in it, like so: (define-cstruct _foo ([data _bytes])) how can I convert foo-data to a byte string? I tried passing it to the subbytes function, but it tells me "ending index is out of range" and "valid range: [0, 0]". The length is stored in a separate struct field which is what I'm passing to subbytes
<jA_cOp>
If I change the pointer's type from _bytes to _pointer, then subbytes complains that it expected bytes? but was given a cpointer
<jA_cOp>
Among the FFI functions is a make-sized-byte-string function, but it's unsupported in CS Racket
ur5us has quit [Ping timeout: 244 seconds]
ur5us has joined #racket
badkins has quit [Remote host closed the connection]