Skip field when preparing next head

This commit is contained in:
Him188 2020-03-05 21:21:06 +08:00
parent bfcb8606a2
commit b0abd0df28

View File

@ -206,6 +206,7 @@ private class JceInput(
current.tag > tag -> null // tag 大了,即找不到
current.tag == tag -> current // 满足需要.
else -> { // tag 小了
skipField(current.type)
check(prepareNextHead()) { "cannot skip to tag $tag, early EOF" }
skipToHeadOrNull(tag)
}