The main responsibility of this class is that of providing efficient ways to read and write a payload from and to bit streams.