Fix BinaryReader#extractBytes

This commit is contained in:
Noel Németh 2022-07-05 20:02:27 +02:00
parent 3e7719b6d1
commit c4479dabbd

View File

@ -294,8 +294,7 @@ public class BinaryReader extends InputStream {
extractor.run();
int endingPosition = getBuffer().position();
byte[] output = new byte[endingPosition - startingPosition];
buffer.get(output, 0, output.length);
//buffer.get(startingPosition, output);
buffer.get(startingPosition, output);
return output;
}
}