Bitstream
Stream bits without aligning them to a byte boundary.
Usage
var bs = ;bs; // Adds 1111111 (seven) bits (the first seven on 0xFF);bs; // Adds 10010 (five) bitsbs; // Adds 11111111 (8) bits (directly after the eleven previous bits)bs; // Aligns the stream to an 4 byte boundary (inserting zeros).bsalign4; // Flush cached input (except for the last partial byte, if any)bs; // Finish stream (flushes implicitly)bs; // Final output of the stream: 01111111 11111001 00001111 00000000