Calculates CRC32 checksums. More...
Instance Methods | |
(NSString *) | - computeHexWithBytes: |
Computes the 32-bit CRC hex string for an array of bytes. More... | |
(NSString *) | - computeHexWithBytes:offset: |
Computes the 32-bit CRC hex string for an array of bytes. More... | |
(NSString *) | - computeHexWithBytes:offset:length: |
Computes the 32-bit CRC hex string for an array of bytes. More... | |
(long long) | - computeWithBytes: |
Computes the 32-bit CRC for an array of bytes. More... | |
(long long) | - computeWithBytes:offset: |
Computes the 32-bit CRC for an array of bytes. More... | |
(long long) | - computeWithBytes:offset:length: |
Computes the 32-bit CRC for an array of bytes. More... | |
(long long) | - finalXorValue |
Gets the value used to XOR the final result. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchCrc32 class using the CRC32 polynomial. More... | |
(long long) | - initialValue |
Gets the initial value. More... | |
(instancetype) | - initWithPolynomial: |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial. More... | |
(instancetype) | - initWithPolynomial:reverseBits: |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial. More... | |
(long long) | - polynomial |
Gets the polynomial. More... | |
(bool) | - reverseBits |
Gets a value indicating whether to reverse the bits. More... | |
(void) | - setFinalXorValue: |
Sets the value used to XOR the final result. More... | |
(void) | - setInitialValue: |
Sets the initial value. More... | |
Class Methods | |
(FMLiveSwitchCrc32 *) | + crc32 |
Initializes a new instance of the FMLiveSwitchCrc32 class using the CRC32 polynomial. More... | |
(long long) | + crc32cPolynomial |
Gets the CRC32c polynomial. More... | |
(long long) | + crc32dPolynomial |
Gets the CRC32d polynomial. More... | |
(long long) | + crc32Polynomial |
Gets the CRC32 polynomial. More... | |
(FMLiveSwitchCrc32 *) | + crc32WithPolynomial: |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial. More... | |
(FMLiveSwitchCrc32 *) | + crc32WithPolynomial:reverseBits: |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial. More... | |
Calculates CRC32 checksums.
- (NSString*) computeHexWithBytes: | (NSMutableData *) | bytes |
Computes the 32-bit CRC hex string for an array of bytes.
bytes | The bytes. |
- (NSString*) computeHexWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
Computes the 32-bit CRC hex string for an array of bytes.
bytes | The bytes. |
offset | The offset. |
- (NSString*) computeHexWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
length: | (int) | length | |
Computes the 32-bit CRC hex string for an array of bytes.
bytes | The bytes. |
offset | The offset. |
length | The length. |
- (long long) computeWithBytes: | (NSMutableData *) | bytes |
Computes the 32-bit CRC for an array of bytes.
bytes | The bytes. |
- (long long) computeWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
Computes the 32-bit CRC for an array of bytes.
bytes | The bytes. |
offset | The offset. |
- (long long) computeWithBytes: | (NSMutableData *) | bytes | |
offset: | (int) | offset | |
length: | (int) | length | |
Computes the 32-bit CRC for an array of bytes.
bytes | The bytes. |
offset | The offset. |
length | The length. |
+ (FMLiveSwitchCrc32*) crc32 |
Initializes a new instance of the FMLiveSwitchCrc32 class using the CRC32 polynomial.
+ (long long) crc32cPolynomial |
Gets the CRC32c polynomial.
+ (long long) crc32dPolynomial |
Gets the CRC32d polynomial.
+ (long long) crc32Polynomial |
Gets the CRC32 polynomial.
+ (FMLiveSwitchCrc32*) crc32WithPolynomial: | (long long) | polynomial |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial.
polynomial | The polynomial. |
+ (FMLiveSwitchCrc32*) crc32WithPolynomial: | (long long) | polynomial | |
reverseBits: | (bool) | reverseBits | |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial.
polynomial | The polynomial. |
reverseBits | Whether to reverse the bits. |
- (long long) finalXorValue |
Gets the value used to XOR the final result.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchCrc32 class using the CRC32 polynomial.
- (long long) initialValue |
Gets the initial value.
- (instancetype) initWithPolynomial: | (long long) | polynomial |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial.
polynomial | The polynomial. |
- (instancetype) initWithPolynomial: | (long long) | polynomial | |
reverseBits: | (bool) | reverseBits | |
Initializes a new instance of the FMLiveSwitchCrc32 class using the specified polynomial.
polynomial | The polynomial. |
reverseBits | Whether to reverse the bits. |
- (long long) polynomial |
Gets the polynomial.
- (bool) reverseBits |
Gets a value indicating whether to reverse the bits.
- (void) setFinalXorValue: | (long long) | value |
Sets the value used to XOR the final result.
- (void) setInitialValue: | (long long) | value |
Sets the initial value.