What is the recommended way find to the byte order of the platform using CFFI? Currently I am using the following:
(defun native-byte-order-lsb-p () (with-foreign-object (x :uint32) (setf (mem-ref x :uint32) 1) (= (mem-ref x :uint8) 1)))
but it looks like a nasty hack.
Tamas
On 02/09/07, Tamas K Papp tpapp@princeton.edu wrote:
What is the recommended way find to the byte order of the platform using CFFI?
I recommend using this library :-)
http://www.cliki.net/trivial-features