matchesOriginTimestamp static method
Verifies that the Origin Timestamp in the response (bytes 24-31) matches the Transmit Timestamp sent in the request (bytes 40-47).
Implementation
static bool matchesOriginTimestamp(Uint8List response, Uint8List request) {
if (response.length < 32 || request.length < 48) return false;
for (var i = 0; i < 8; i++) {
if (response[24 + i] != request[40 + i]) {
return false;
}
}
return true;
}