A class to contain a bitstream