in plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/util/pngj/PngHelperInternal.kt [88:98]
fun readInt4(inputStream: InputPngStream): Int {
return try {
val b1: Int = inputStream.read()
val b2: Int = inputStream.read()
val b3: Int = inputStream.read()
val b4: Int = inputStream.read()
if (b1 == -1 || b2 == -1 || b3 == -1 || b4 == -1) -1 else b1 shl 24 or (b2 shl 16) or (b3 shl 8) + b4
} catch (e: Throwable) {
throw PngjInputException("error reading Int4", e)
}
}