From: Phrogz Date: 2007-05-18T04:15:08+09:00 Subject: Re: Streams of bits On May 17, 6:52 am, Richard Fairhurst wrote: > I'm writing a bit of Ruby to output SWF files. Nice! > SWF's opcodes and arguments are variable-length streams of bits. They're > packed in direct succession - i.e. not usually padded to byte > boundaries. Not that I've used either, but see: BitStruct: http://raa.ruby-lang.org/project/bit-struct/ BitStructEx: http://bit-struct-ex.rubyforge.org/wiki/wiki.pl