mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Simplify computeActualNodeArraySize.
Change-Id: I128d02866c2cc70c42263496927327b8a2130139
This commit is contained in:
parent
2232a70806
commit
b50a7a4bc7
@ -326,15 +326,11 @@ public class BinaryDictEncoderUtils {
|
||||
}
|
||||
int nodeSize = getNodeHeaderSize(ptNode, formatOptions);
|
||||
if (ptNode.isTerminal()) nodeSize += FormatSpec.PTNODE_FREQUENCY_SIZE;
|
||||
if (null == ptNode.mChildren && formatOptions.mSupportsDynamicUpdate) {
|
||||
if (formatOptions.mSupportsDynamicUpdate) {
|
||||
nodeSize += FormatSpec.SIGNED_CHILDREN_ADDRESS_SIZE;
|
||||
} else if (null != ptNode.mChildren) {
|
||||
if (formatOptions.mSupportsDynamicUpdate) {
|
||||
nodeSize += FormatSpec.SIGNED_CHILDREN_ADDRESS_SIZE;
|
||||
} else {
|
||||
nodeSize += getByteSize(getOffsetToTargetNodeArrayDuringUpdate(ptNodeArray,
|
||||
nodeSize + size, ptNode.mChildren));
|
||||
}
|
||||
nodeSize += getByteSize(getOffsetToTargetNodeArrayDuringUpdate(ptNodeArray,
|
||||
nodeSize + size, ptNode.mChildren));
|
||||
}
|
||||
nodeSize += getShortcutListSize(ptNode.mShortcutTargets);
|
||||
if (null != ptNode.mBigrams) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user