mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Implemented ByteInput#realign
This commit is contained in:
parent
c0ef2dcb8a
commit
5dd29339fc
@ -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.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user