[OSM-dev] Ruby help - streams of bits

Richard Fairhurst richard at systemeD.net
Thu May 17 13:49:03 BST 2007


SteveC wrote:

> can't you do something like
>
> a = ''
>
> a[0] = 123
>
> to set byte 0 of a string to char 123?

Sure, it's getting from the '01001' '1100111' '0011111' etc. to the  
bytes that's the slow bit, I think.

cheers
Richard





More information about the dev mailing list