CrcWidthAccessor
, org.refcodes.mixin.NameAccessor
CrcAlgorithmConfig
, CrcAlgorithmImpl
public interface CrcAlgorithm extends CrcWidthAccessor, org.refcodes.mixin.NameAccessor
CrcWidthAccessor.CrcWidthBuilder<B extends CrcWidthAccessor.CrcWidthBuilder<B>>, CrcWidthAccessor.CrcWidthMutator, CrcWidthAccessor.CrcWidthProperty
Modifier and Type | Method | Description |
---|---|---|
CrcSize |
getCrcSize() |
Gets the
CrcSize class to which this CrcAlgorithm
belongs. |
byte[] |
toCrcBytes(byte[] aData,
int aOffset,
int aLength,
Endianess aEndianess) |
Calculates the according checksum from the supplied data data and returns
the according byte array of the CRC checksum.
|
byte[] |
toCrcBytes(byte[] aData,
Endianess aEndianess) |
Calculates the according checksum from the supplied data data and returns
the according byte array of the CRC checksum.
|
byte[] |
toCrcBytes(byte aData,
Endianess aEndianess) |
Calculates the according checksum from the supplied data and returns the
according byte array of the CRC checksum.
|
byte[] |
toCrcBytes(long aCrc,
byte[] aData,
int aOffset,
int aLength,
Endianess aEndianess) |
Updates the according checksum with he supplied data data and returns the
according byte array of the CRC checksum.
|
byte[] |
toCrcBytes(long aCrc,
byte[] aData,
Endianess aEndianess) |
Updates the according checksum with he supplied data data and returns the
according byte array of the CRC checksum.
|
byte[] |
toCrcBytes(long aCrc,
byte aData,
Endianess aEndianess) |
Updates the according checksum with he supplied data data and returns the
according byte array of the CRC checksum.
|
long |
toCrcChecksum(byte aData) |
Calculates the according checksum from the supplied data.
|
long |
toCrcChecksum(byte[] aData) |
Calculates the according checksum from the supplied data.
|
long |
toCrcChecksum(byte[] aData,
int aOffset,
int aLength) |
Calculates the according checksum from the supplied data.
|
long |
toCrcChecksum(long aCrc,
byte aData) |
Updates the according checksum with he supplied data.
|
long |
toCrcChecksum(long aCrc,
byte[] aData) |
Updates the according checksum with he supplied data.
|
long |
toCrcChecksum(long aCrc,
byte[] aData,
int aOffset,
int aLength) |
Updates the according checksum with he supplied data.
|
getCrcWidth
CrcSize getCrcSize()
CrcSize
class to which this CrcAlgorithm
belongs.CrcSize
enumeration providing various width related
methods.long toCrcChecksum(byte aData)
aData
- The data for which to calculate the checksum.long toCrcChecksum(long aCrc, byte aData)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.long toCrcChecksum(byte[] aData)
aData
- The data for which to calculate the checksum.long toCrcChecksum(long aCrc, byte[] aData)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.long toCrcChecksum(byte[] aData, int aOffset, int aLength)
aData
- The data for which to calculate the checksum.aOffset
- The offset from where to start.aLength
- The number of bytes to cover.long toCrcChecksum(long aCrc, byte[] aData, int aOffset, int aLength)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.aOffset
- The offset from where to start.aLength
- The number of bytes to cover.byte[] toCrcBytes(byte aData, Endianess aEndianess)
aData
- The data for which to calculate the checksum.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.byte[] toCrcBytes(long aCrc, byte aData, Endianess aEndianess)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.byte[] toCrcBytes(byte[] aData, Endianess aEndianess)
aData
- The data for which to calculate the checksum.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.byte[] toCrcBytes(long aCrc, byte[] aData, Endianess aEndianess)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.byte[] toCrcBytes(byte[] aData, int aOffset, int aLength, Endianess aEndianess)
aData
- The data for which to calculate the checksum.aOffset
- The offset from where to start.aLength
- The number of bytes to cover.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.byte[] toCrcBytes(long aCrc, byte[] aData, int aOffset, int aLength, Endianess aEndianess)
aCrc
- The CRC checksum to be updated.aData
- The data for which to calculate the checksum.aOffset
- The offset from where to start.aLength
- The number of bytes to cover.aEndianess
- The Endianess
(big endian or little endian) of
the resulting bytes representing the CRC checksum.Copyright © 2021. All rights reserved.