toBytes method
Converts to a byte list. Note that the numbers are stored in big-endian order.
Implementation
List<int?> toBytes() {
List<int?> bytes = List<int?>.filled(12, null);
bytes[0] = _int3(_timestamp);
bytes[1] = _int2(_timestamp);
bytes[2] = _int1(_timestamp);
bytes[3] = _int0(_timestamp);
bytes[4] = _int2(_machineId);
bytes[5] = _int1(_machineId);
bytes[6] = _int0(_machineId);
bytes[7] = _int1(_processId);
bytes[8] = _int0(_processId);
bytes[9] = _int2(_counter);
bytes[10] = _int1(_counter);
bytes[11] = _int0(_counter);
return bytes;
}