append8BitBytes static method

void append8BitBytes(
  1. String content,
  2. BitArray bits,
  3. Encoding encoding
)

Implementation

static void append8BitBytes(
  String content,
  BitArray bits,
  Encoding encoding,
) {
  final bytes = encoding.encode(content);
  for (int b in bytes) {
    bits.appendBits(b, 8);
  }
}