From: Bruno H. <br...@cl...> - 2005-01-29 16:46:36
|
Sam wrote: > >> disadvantages: lack of modularity (tight coupling with the stream > >> world) > > > > Yes, this could be improved. > > please do. Done. The new functions are also exported through genclisph.d. You can use them in the modules. > > There probably need to be two variants of this function, one taking an > > "const uintB* buffer", the other one taking an "object buffer" (a > > simple-array of rank 1 and element-type (unsigned-byte 8)). > > I would call these functions LEbytes_to_I and LEbytes_vector_to_I > > instead of bitbuff_to_I. > > this need for two functions is the reason why the `maygc' property of > bitbuff_to_I() is so bad (see above ***) But the two functions actually share 99% of their code. Bruno |