Re: [racket-dev] Reading and writing binary data

2012-05-11 Thread Eli Barzilay
30 minutes ago, Tobias Hammer wrote: > > after reading this thread on make-sized-byte-string to convert an > arbitrary cpointer very efficiently into a byte string "Efficiently" is not really the right word here -- it basically creates a byte string using a pointer to an existing block of memory,

[racket-dev] Reading and writing binary data

2012-05-11 Thread Tobias Hammer
Hi, after reading this thread on make-sized-byte-string to convert an arbitrary cpointer very efficiently into a byte string (http://www.mail-archive.com/[email protected]/msg11958.html) i came up with the idea to use it for writing structured binary data to a file: (define-cstruct _S ([a _i