setC40Word static method

void setC40Word(
  1. Uint8List bytes,
  2. int offset,
  3. int c1,
  4. int c2,
  5. int c3,
)

Implementation

static void setC40Word(Uint8List bytes, int offset, int c1, int c2, int c3) {
  final val16 = (1600 * (c1 & 0xff)) + (40 * (c2 & 0xff)) + (c3 & 0xff) + 1;
  bytes[offset] = (val16 ~/ 256);
  bytes[offset + 1] = (val16 % 256);
}