Class FcsUtils
java.lang.Object
com.trdp.util.FcsUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcalculateFcs(byte[] data, int offset, int length) Calculates the Frame Check Sequence (FCS) using the CRC-32 algorithm as specified in IEEE 802.3.
-
Method Details
-
calculateFcs
public static int calculateFcs(byte[] data, int offset, int length) Calculates the Frame Check Sequence (FCS) using the CRC-32 algorithm as specified in IEEE 802.3.- Parameters:
data- the data to calculate the checksum for.offset- the starting offset in the byte array.length- the number of bytes to include in the calculation.- Returns:
- the calculated FCS value.
-