getMessageIdFromHeaderIfSyncNumberOk function

int? getMessageIdFromHeaderIfSyncNumberOk(
  1. ByteData data,
  2. int offset
)

Implementation

int? getMessageIdFromHeaderIfSyncNumberOk(ByteData data, int offset) {
  var endianness = getEndianness(data, offset);
  if (endianness == null) return null;
  var msgId = data.getUint16(offset + 2, endianness);
  return msgId;
}