1. Move method

2. addPad to BitBuffer
3. Feature envy. addPad calls only BitBuffer methods.
pull/90/head
gerzees 5 years ago
parent 7047caa546
commit 4ddf3a02c7

@ -126,4 +126,11 @@ public final class BitBuffer implements Cloneable {
} }
} }
// Pad with alternating bytes until data capacity is reached
void addPad(int dataCapacityBits) {
for (int padByte = 0xEC; bitLength() < dataCapacityBits; padByte ^= 0xEC ^ 0x11)
appendBits(padByte, 8);
}
} }

Loading…
Cancel
Save