Browse thread
How to read different ints from a Bigarray?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2009-10-29 (17:11) |
From: | Goswin von Brederlow <goswin-v-b@w...> |
Subject: | Re: [Caml-list] Re: How to read different ints from a Bigarray? |
Richard Jones <rich@annexia.org> writes: > 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. I still can reuse a lot of this. Esspecially the syntax extension seems like a good idea. Maybe reduced to bytes instead of bits though. I don't intend to use such fine grained structures to need bit access. MfG Goswin