length is byte size, bitCount is bit size