mirror of
https://github.com/revanced/ARSCLib.git
synced 2025-04-30 06:14:25 +02:00
fix: read file channel stream #32
This commit is contained in:
parent
ce27a1bf4f
commit
ac7c49c22b
@ -148,7 +148,7 @@ public class FileChannelInputStream extends InputStream {
|
|||||||
position += availableChannel;
|
position += availableChannel;
|
||||||
remaining = remaining - availableChannel;
|
remaining = remaining - availableChannel;
|
||||||
amount = amount - remaining;
|
amount = amount - remaining;
|
||||||
fileChannel.position(fileChannel.position() + amount);
|
fileChannel.position(fileChannel.position() + availableChannel);
|
||||||
return amount;
|
return amount;
|
||||||
}
|
}
|
||||||
private int skipBuffer(int amount){
|
private int skipBuffer(int amount){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user