createMessage function

  1. @visibleForTesting
Uint8List createMessage(
  1. int msgLen,
  2. int msgID,
  3. String payload, [
  4. int? overrideReqID,
])

Returns the whole RCON message as a Uint8List. Requires the message length, message ID, and the payload.

Implementation

@visibleForTesting
Uint8List createMessage(int msgLen, int msgID, String payload,
    [int? overrideReqID]) {
  return _createMessage(msgLen, msgID, payload, overrideReqID);
}