binary-streams / loggersoft.kotlin.streams / crc16

crc16

fun ByteArea.crc16(startValue: Int = CRC16_START_VALUE, offset: Int = 0, size: Int = this.size - offset): Int

Calculates CRC16 of ByteArea from offset with size starting from startValue.

@ExperimentalUnsignedTypes fun StreamInput.crc16(size: Int): Int

Calculates CRC16 for size bytes in the stream.