encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(BitArray value, Output output) {
CompactCodec.codec.encodeTo(value.length, output);
switch (bitOrder) {
case BitOrder.MSB:
_encodeMSB(value, output);
break;
case BitOrder.LSB:
_encodeLSB(value, output);
}
}