mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
Skip field when preparing next head
This commit is contained in:
parent
bfcb8606a2
commit
b0abd0df28
@ -206,6 +206,7 @@ private class JceInput(
|
|||||||
current.tag > tag -> null // tag 大了,即找不到
|
current.tag > tag -> null // tag 大了,即找不到
|
||||||
current.tag == tag -> current // 满足需要.
|
current.tag == tag -> current // 满足需要.
|
||||||
else -> { // tag 小了
|
else -> { // tag 小了
|
||||||
|
skipField(current.type)
|
||||||
check(prepareNextHead()) { "cannot skip to tag $tag, early EOF" }
|
check(prepareNextHead()) { "cannot skip to tag $tag, early EOF" }
|
||||||
skipToHeadOrNull(tag)
|
skipToHeadOrNull(tag)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user