in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/util/pngj/DeflatedChunksSet.kt [338:351]
fun ackNextChunkId(id: String): Boolean {
return if (state.isClosed) false else if (id == chunkid) {
true
} else {
if (!allowOtherChunksInBetween(id)) {
if (state.isDone) {
if (!state.isClosed) close()
false
} else {
throw PngjInputException("Unexpected chunk $id while $chunkid set is not done")
}
} else true
}
}