Many protocols like FastCGI, Socks and VNC use Little/Big-Endian-Stuff and low-level byte-operations. Often, there are numbers to be read directly from a byte-sequence, etc.
In C, you just read that stuff into a struct and then mostly have the proper contents in it.
Common Lisp has unsigned-byte and a few other types, but to me its rather complicated to keep track of this (and seems like some operations are not very efficient). What is the best way to handle such data in Common Lisp?
In C, you just read that stuff into a struct and then mostly have the proper contents in it.
Common Lisp has unsigned-byte and a few other types, but to me its rather complicated to keep track of this (and seems like some operations are not very efficient). What is the best way to handle such data in Common Lisp?
Sorry for my bad english.
Visit my blog http://blog.uxul.de/
Visit my blog http://blog.uxul.de/