@Throws(UnsupportedEncodingException::class, DecodingException::class)fun decode(): jdk.internal.org.jline.utils.DiffHelper.Diff? { val header: Int = r.read(3) if (DiffAction.parse(header) !== DiffAction.DECODER_DATA) { throw DecodingException("Invalid codecData code: $header") } val blockSize_C = 3 val blockSize_S: Int = r.read(5) val blockSize_E: Int = r.read(5) val blockSize_B: Int = r.read(5) val blockSize_L: Int = r.read(5) r.read(1) if (blockSize_S < 0 || blockSize_S > 31) { throw DecodingException("blockSize_S out of range: $blockSize_S") } if (blockSize_E < 0 || blockSize_E > 31) { throw DecodingException("blockSize_E out of range: $blockSize_E") } if (blockSize_B < 0 || blockSize_B > 31) { throw DecodingException("blockSize_B out of range: $blockSize_B") } if (blockSize_L < 0 || blockSize_L > 31) { throw DecodingException("blockSize_L out of range: $blockSize_L") } return decode(blockSize_C, blockSize_S, blockSize_E, blockSize_B, blockSize_L) }
Decodes the information and returns the Diff .