Commit e2ed741d by souji

prevented excess loop, reading pes header

parent 5050913b
...@@ -138,7 +138,8 @@ public final class ParsableBitArray { ...@@ -138,7 +138,8 @@ public final class ParsableBitArray {
int returnValue = 0; int returnValue = 0;
// While n >= 8, read whole bytes. // While n >= 8, read whole bytes.
while (n >= 8) { int numBytes = (n / 8);
for (int i = 0; i < numBytes; i ++) {
int byteValue; int byteValue;
if (bitOffset != 0) { if (bitOffset != 0) {
byteValue = ((data[byteOffset] & 0xFF) << bitOffset) byteValue = ((data[byteOffset] & 0xFF) << bitOffset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment