* commit 'acc9554d7b44b99dbfca800b58c0481e2427631b': add capacity to FusionDictionaryBufferInterface.
This commit is contained in:
commit
719ae39840
2 changed files with 11 additions and 0 deletions
|
@ -100,6 +100,11 @@ public class UserHistoryDictIOUtils {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int limit() {
|
public int limit() {
|
||||||
|
return mBuffer.length - 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int capacity() {
|
||||||
return mBuffer.length;
|
return mBuffer.length;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,6 +63,7 @@ public class BinaryDictInputOutput {
|
||||||
public void position(int newPosition);
|
public void position(int newPosition);
|
||||||
public void put(final byte b);
|
public void put(final byte b);
|
||||||
public int limit();
|
public int limit();
|
||||||
|
public int capacity();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
|
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
|
||||||
|
@ -112,6 +113,11 @@ public class BinaryDictInputOutput {
|
||||||
public int limit() {
|
public int limit() {
|
||||||
return mBuffer.limit();
|
return mBuffer.limit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int capacity() {
|
||||||
|
return mBuffer.capacity();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue