putIntLEPartial

fun ByteArray.putIntLEPartial(offset: Int, value: Int, numBytes: Int)

Writes the lowest numBytes bytes of the value into the ByteArray in little‑endian order, starting at offset.