Class FcsUtils

java.lang.Object
com.trdp.util.FcsUtils

public final class FcsUtils extends Object
  • 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.