encodeString

fun MavDataEncoder.encodeString(value: String, length: Int)

Writes the given String to the array's current position, and then increments the position. If the encoded String is shorter than the length parameter then the remaining positions are filled with empty characters.