apply static method

List<int> apply(
  1. List<int> message
)

Applies the forward F4Jumble transformation to the message.

Implementation

static List<int> apply(List<int> message) {
  if (!haveValidLength(message)) {
    throw ArgumentException.invalidOperationArguments(
      "apply",
      name: "message",
      reason: "Invalid message length.",
    );
  }
  final state = _F4JumbleState(message);
  try {
    return state.applyF4Jumble();
  } finally {
    state.clear();
  }
}