public class CRC32MPEG2 extends Object
This is one of several incompatible CRC32 implementations.
| Constructor and Description |
|---|
CRC32MPEG2() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compute(byte[] fullMessage)
Compute CRC32 checksum for byte array and insert into array.
|
byte[] |
getCRC32() |
void |
update(byte[] bytes,
int meaningfulLength) |
static boolean |
verify(byte[] fullMessage,
byte[] expected)
Verify CRC32 checksum for byte array.
|
public void update(byte[] bytes,
int meaningfulLength)
public byte[] getCRC32()
public static byte[] compute(byte[] fullMessage)
This uses the CRC32 checksum specified by ISO/IEC-13818-1. This is used in ST0806.
This is not the same checksum as is used in ST0601.
fullMessage - Byte array of the full message packetpublic static boolean verify(byte[] fullMessage,
byte[] expected)
This uses the CRC32 checksum specified by ISO/IEC-13818-1. This is used in ST0806.
This is not the same checksum as is used in ST0601.
fullMessage - Byte array of the full message packetexpected - expected checksum valueCopyright © 2021 West Ridge Systems. All rights reserved.