[cffi-devel] finding out byte order
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
2 Sep
2 Sep
3:30 p.m.
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 -- Luís Oliveira http://student.dei.uc.pt/~lmoliv/
6366
Age (days ago)
6366
Last active (days ago)
1 comments
2 participants
participants (2)
-
Luís Oliveira
-
Tamas K Papp