mirror of
https://github.com/revanced/smali.git
synced 2025-05-28 11:50:12 +02:00
MemoryDataStore: Allow overriding of growth policy
This commit is contained in:
parent
ea7c265d12
commit
387299c6e3
@ -7,7 +7,7 @@ import java.io.OutputStream;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class MemoryDataStore implements DexDataStore {
|
||||
private byte[] buf;
|
||||
protected byte[] buf;
|
||||
|
||||
public MemoryDataStore() {
|
||||
this(1024 * 1024);
|
||||
@ -43,7 +43,7 @@ public class MemoryDataStore implements DexDataStore {
|
||||
};
|
||||
}
|
||||
|
||||
private void growBufferIfNeeded(int minSize) {
|
||||
protected void growBufferIfNeeded(int minSize) {
|
||||
if (minSize <= buf.length) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user