![](https://secure.gravatar.com/avatar/13663028cac36d0b9ff102354f298263.jpg?s=120&d=mm&r=g)
2 Sep
2007
2 Sep
'07
2:28 p.m.
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