Large bit-strings
Jens Pall
jens at axonspace.com
Wed Jul 30 23:10:16 UTC 2003
>
> I made a subclass of ArrayedCollection that internally represents its
> contents as a LargeInteger (I call it BitArray). I can convert BitArrays
> to and from Integers, Strings and ByteArrays. The ability to use the
> Collection and Stream protocol with bits was very useful for me, and
> simplified a lot my code. I think we should have something like this in
> the image (I'm not publishing my code because it's just a quick hack).
How large can a LargeInteger get?
Did you use just one LargeInteger in the collection or a sequence of them?
Were you able to take 'chunks' of bits from the array?
I also have to be able to store the string on disk so this looks useful.
Jens
More information about the Squeak-dev
mailing list
|