Skip to content
Snippets Groups Projects
Commit a149c53c authored by Yuichiro Hanada's avatar Yuichiro Hanada
Browse files

add limit to FusionDictionaryBufferInterface.

Change-Id: Ic9ff717a9751023d47b02ff3b9d1fbf3115c2501
parent a0ebb28d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment