transport function

Uint8List transport(
  1. int cla,
  2. int ins,
  3. int p1,
  4. int p2, [
  5. Uint8List? payload,
])

Implementation

Uint8List transport(
  int cla,
  int ins,
  int p1,
  int p2, [
  Uint8List? payload,
]) {
  payload ??= Uint8List.fromList([]);
  return Uint8List.fromList([cla, ins, p1, p2, ...payload]);
}