am a149c53c: add limit to FusionDictionaryBufferInterface.
* commit 'a149c53c8ebe1b2acb7ee92eac51ccdc364162e7': add limit to FusionDictionaryBufferInterface.main
commit
32f5139055
|
@ -96,6 +96,11 @@ public class UserHistoryDictIOUtils {
|
|||
public void put(final byte b) {
|
||||
mBuffer[mPosition++] = b;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int limit() {
|
||||
return mBuffer.length;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -63,6 +63,7 @@ public class BinaryDictInputOutput {
|
|||
public int position();
|
||||
public void position(int newPosition);
|
||||
public void put(final byte b);
|
||||
public int limit();
|
||||
}
|
||||
|
||||
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
|
||||
|
@ -107,6 +108,11 @@ public class BinaryDictInputOutput {
|
|||
public void put(final byte b) {
|
||||
mBuffer.put(b);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int limit() {
|
||||
return mBuffer.limit();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue