am a161bdac: add capacity to FusionDictionaryBufferInterface.
* commit 'a161bdac885fc8e5f0063d33b055b0a6ecdefbdb': add capacity to FusionDictionaryBufferInterface.main
commit
acc9554d7b
|
@ -100,6 +100,11 @@ public class UserHistoryDictIOUtils {
|
|||
|
||||
@Override
|
||||
public int limit() {
|
||||
return mBuffer.length - 1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int capacity() {
|
||||
return mBuffer.length;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ public class BinaryDictInputOutput {
|
|||
public void position(int newPosition);
|
||||
public void put(final byte b);
|
||||
public int limit();
|
||||
public int capacity();
|
||||
}
|
||||
|
||||
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
|
||||
|
@ -112,6 +113,11 @@ public class BinaryDictInputOutput {
|
|||
public int limit() {
|
||||
return mBuffer.limit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int capacity() {
|
||||
return mBuffer.capacity();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue