Implemented ByteInput#realign

This commit is contained in:
Collin Smith 2020-08-12 23:58:03 -07:00
parent c0ef2dcb8a
commit 5dd29339fc

View File

@ -109,6 +109,17 @@ public class ByteInput {
return bitInput();
}
/**
* Aligns the bit stream associated with this byte stream (if one exists)
* with the byte boundary.
*
* @see BitInput#align()
*/
public ByteInput realign() {
if (bitInput == null) return this;
return bitInput.align();
}
/**
* Skips <i>n</i> bytes by discarding them.
*/