am 8d031a63: Add put method to FusionDictionaryBufferInterface.
* commit '8d031a63b4d59d4d8670b4310dd9e18a0e03435a': Add put method to FusionDictionaryBufferInterface.main
commit
ec2039aa66
|
@ -91,6 +91,11 @@ public class UserHistoryDictIOUtils {
|
|||
public void position(int position) {
|
||||
mPosition = position;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void put(final byte b) {
|
||||
mBuffer[mPosition++] = b;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -232,6 +232,7 @@ public class BinaryDictInputOutput {
|
|||
public int readInt();
|
||||
public int position();
|
||||
public void position(int newPosition);
|
||||
public void put(final byte b);
|
||||
}
|
||||
|
||||
public static final class ByteBufferWrapper implements FusionDictionaryBufferInterface {
|
||||
|
@ -271,6 +272,11 @@ public class BinaryDictInputOutput {
|
|||
public void position(int newPos) {
|
||||
mBuffer.position(newPos);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void put(final byte b) {
|
||||
mBuffer.put(b);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue