On Thu, Oct 29, 2009 at 10:50:31AM +0100, Goswin von Brederlow wrote: > but no > > let unparse_foo (x, y) = > bitmake { x : 16 : littleendian; y : 16 : littleendian } x y
See: http://et.redhat.com/~rjones/bitstring/html/Bitstring.html#2_Constructingbitstrings I don't necessarily think bitstring is suitable here though because you still need to read your data into a string (or fake a string on the C heap as Olivier Andrieu mentioned). I think in this case you'd be better off just writing this part of the code in C. Rich. -- Richard Jones Red Hat _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs