mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-20 09:17:29 +07:00
Deprecated and removed multi-byte read methods from BitInput
Unaligned multi-byte read operations shouldn't align stream Implementing unaligned multi-byte read support is required
This commit is contained in:
parent
7006ce9dc0
commit
acdbace5ea
@ -450,25 +450,34 @@ public class BitInput {
|
||||
}
|
||||
|
||||
/**
|
||||
* Aligns bit stream and reads from {@link #align()}
|
||||
* @deprecated unaligned reads not supported!
|
||||
* use {@code align().readBytes(int)} instead!
|
||||
* <pre>{@link #align()} {@link ByteInput#readBytes(int)}</pre>
|
||||
*/
|
||||
public byte[] readBytes(int len) {
|
||||
return align().readBytes(len);
|
||||
}
|
||||
// @Deprecated
|
||||
// public byte[] readBytes(int len) {
|
||||
// throw new UnsupportedOperationException("use align().readBytes(int) instead!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* Aligns bit stream and reads from {@link #align()}
|
||||
* @deprecated unaligned reads not supported!
|
||||
* use {@code align().readBytes(byte[])} instead!
|
||||
* <pre>{@link #align()} {@link ByteInput#readBytes(byte[])}</pre>
|
||||
*/
|
||||
public byte[] readBytes(byte[] dst) {
|
||||
return align().readBytes(dst);
|
||||
}
|
||||
// @Deprecated
|
||||
// public byte[] readBytes(byte[] dst) {
|
||||
// throw new UnsupportedOperationException("use align().readBytes(byte[]) instead!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* Aligns bit stream and reads from {@link #align()}
|
||||
* @deprecated unaligned reads not supported!
|
||||
* use {@code align().readBytes(byte[], int, int)} instead!
|
||||
* <pre>{@link #align()} {@link ByteInput#readBytes(byte[], int, int)}</pre>
|
||||
*/
|
||||
public byte[] readBytes(byte[] dst, int dstOffset, int len) {
|
||||
return align().readBytes(dst, dstOffset, len);
|
||||
}
|
||||
// @Deprecated
|
||||
// public byte[] readBytes(byte[] dst, int dstOffset, int len) {
|
||||
// throw new UnsupportedOperationException("use align().readBytes(byte[],int,int) instead!");
|
||||
// }
|
||||
|
||||
/**
|
||||
* Reads <i>n</i> bytes from the bit stream and constructs a string.
|
||||
|
Loading…
Reference in New Issue
Block a user