void writeBytes(List<int> bytes) { for (var i = 0; i < bytes.length; ++i) { writeBits(8, bytes[i]); } }