Commit b85c91b2 authored by Him188's avatar Him188

Fix build

parent 85b72ac4
...@@ -502,8 +502,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo ...@@ -502,8 +502,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo
internal val leastRemaining = input.remaining - maxReadSize internal val leastRemaining = input.remaining - maxReadSize
internal val isEndOfInput: Boolean get() = input.remaining <= leastRemaining internal val isEndOfInput: Boolean get() = input.remaining <= leastRemaining
internal var currentJceHead: JceHead? = input.doReadHead().also { internal var currentJceHead: JceHead? = input.doReadHead()
// println("first jce head = $it") }
override fun close() = input.close() override fun close() = input.close()
...@@ -597,8 +596,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo ...@@ -597,8 +596,7 @@ class Jce private constructor(private val charset: JceCharset, context: SerialMo
val head = readHead() val head = readHead()
readHead() readHead()
check(head.type.toInt() == 0) { "type mismatch" } check(head.type.toInt() == 0) { "type mismatch" }
input.readBytes(readInt(0).also { input.readBytes(readInt(0))
// println("list size=$it") })
} }
else -> error("type mismatch") else -> error("type mismatch")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment