encodeContent method

Iterable<int> encodeContent()

Implementation

Iterable<int> encodeContent() {
  if (bitString.isEmpty && unusedBits != 0) {
    throw Exception('Unused bytes is not 0 while bitstring is empty');
  }
  return <int>[
    unusedBits,
    ...bitString,
  ];
}