mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '7faf750f4a0868afd2d0692a96794ccecb2ede28': Make readUnigramsAndBigramsBinary read linked-list nodes.
This commit is contained in:
commit
6c2bd05b7e
@ -92,7 +92,18 @@ public class BinaryDictIOUtils {
|
||||
}
|
||||
|
||||
if (p.mPosition == p.mNumOfCharGroup) {
|
||||
stack.pop();
|
||||
if (formatOptions.mHasLinkedListNode) {
|
||||
final int forwardLinkAddress = buffer.readUnsignedInt24();
|
||||
if (forwardLinkAddress != FormatSpec.NO_FORWARD_LINK_ADDRESS) {
|
||||
// the node has a forward link.
|
||||
p.mNumOfCharGroup = Position.NOT_READ_GROUPCOUNT;
|
||||
p.mAddress = forwardLinkAddress;
|
||||
} else {
|
||||
stack.pop();
|
||||
}
|
||||
} else {
|
||||
stack.pop();
|
||||
}
|
||||
} else {
|
||||
// the node has more groups.
|
||||
p.mAddress = buffer.position();
|
||||
|
Loading…
Reference in New Issue
Block a user