am 73779f76: Make readUnigramsAndBigramsBinary read linked-list nodes.
* commit '73779f7631d41f16f89c62cae09a1b27d8189dc3': Make readUnigramsAndBigramsBinary read linked-list nodes.main
commit
7faf750f4a
|
@ -92,7 +92,18 @@ public class BinaryDictIOUtils {
|
|||
}
|
||||
|
||||
if (p.mPosition == p.mNumOfCharGroup) {
|
||||
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