CsafeCommand.short constructor

CsafeCommand.short(
  1. int commandId
)

Implementation

CsafeCommand.short(int commandId)
    : command = CsafeCommandIdentifier(commandId & 0xFF) {
  if (command.type == CsafeCommandType.long) {
    throw FormatException(
        "Long Command byte cannot be used to initialize a short command");
  }
}