Write bits in file
castironpi
castironpi at gmail.com
Tue May 20 14:13:41 EDT 2008
On May 20, 10:30 am, Nick Craig-Wood <n... at craig-wood.com> wrote:
> Monica Leko <monica.l... at gmail.com> wrote:
> > On May 18, 2:20?pm, Ken Starks <stra... at lampsacos.demon.co.uk> wrote:
> > > You want your file considered as a sequence of bits rather
> > > than a sequence of 8-bit bytes, do you?
>
> > Yes.
>
> > > is the 10-bit bit-pattern to be stored at an arbitrary
> > > bit-position in the file
>
> > Yes. I need arbitrary, 8bits, than 10 bits for something else, than
> > sequence of bytes, than 10 bits again, etc.
>
> You could try
>
> http://construct.wikispaces.com/
>
> which could well do exactly what you want.
>
> --
> Nick Craig-Wood <n... at craig-wood.com> --http://www.craig-wood.com/nick
Do you have space to waste? If so, how much? Worst case, you could
be looking at a factor of 32 or higher, if each bit took an entire
system word.
More information about the Python-list
mailing list