mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-04 07:17:26 +07:00
Implemented ByteInput#realign
This commit is contained in:
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user