encodeInteger

fun MavDataEncoder.encodeInteger(value: Long, dataSize: Int)

Encodes the given Long into a ByteArray of size dataSize, writes it to the array's current position, and then increments the position.