FMIceLinkCrc32 Class Reference

Inherits from NSObject
Declared in FMIceLinkCrc32.h
FMIceLinkCrc32.m

Overview

Calculates CRC32 checksums.

– computeHexWithBytes:

Computes the 32-bit CRC hex string for an array of bytes.
- (NSString *)computeHexWithBytes:(NSMutableData *)bytes

Parameters

bytes

The bytes.

Discussion

Computes the 32-bit CRC hex string for an array of bytes.

Declared In

FMIceLinkCrc32.h

– computeHexWithBytes:offset:

Computes the 32-bit CRC hex string for an array of bytes.
- (NSString *)computeHexWithBytes:(NSMutableData *)bytes offset:(int)offset

Parameters

bytes

The bytes.

offset

The offset.

Discussion

Computes the 32-bit CRC hex string for an array of bytes.

Declared In

FMIceLinkCrc32.h

– computeHexWithBytes:offset:length:

Computes the 32-bit CRC hex string for an array of bytes.
- (NSString *)computeHexWithBytes:(NSMutableData *)bytes offset:(int)offset length:(int)length

Parameters

bytes

The bytes.

offset

The offset.

length

The length.

Discussion

Computes the 32-bit CRC hex string for an array of bytes.

Declared In

FMIceLinkCrc32.h

– computeWithBytes:

Computes the 32-bit CRC for an array of bytes.
- (long long)computeWithBytes:(NSMutableData *)bytes

Parameters

bytes

The bytes.

Discussion

Computes the 32-bit CRC for an array of bytes.

Declared In

FMIceLinkCrc32.h

– computeWithBytes:offset:

Computes the 32-bit CRC for an array of bytes.
- (long long)computeWithBytes:(NSMutableData *)bytes offset:(int)offset

Parameters

bytes

The bytes.

offset

The offset.

Discussion

Computes the 32-bit CRC for an array of bytes.

Declared In

FMIceLinkCrc32.h

– computeWithBytes:offset:length:

Computes the 32-bit CRC for an array of bytes.
- (long long)computeWithBytes:(NSMutableData *)bytes offset:(int)offset length:(int)length

Parameters

bytes

The bytes.

offset

The offset.

length

The length.

Discussion

Computes the 32-bit CRC for an array of bytes.

Declared In

FMIceLinkCrc32.h

+ crc32cPolynomial

Gets the CRC32c [polynomial](#//api/name/polynomial).
+ (long long)crc32cPolynomial

Discussion

Gets the CRC32c [polynomial](#//api/name/polynomial).

Declared In

FMIceLinkCrc32.h

+ crc32dPolynomial

Gets the CRC32d [polynomial](#//api/name/polynomial).
+ (long long)crc32dPolynomial

Discussion

Gets the CRC32d [polynomial](#//api/name/polynomial).

Declared In

FMIceLinkCrc32.h

+ crc32Polynomial

Gets the CRC32 [polynomial](#//api/name/polynomial).
+ (long long)crc32Polynomial

Discussion

Gets the CRC32 [polynomial](#//api/name/polynomial).

Declared In

FMIceLinkCrc32.h

+ crc32WithPolynomial:

Initializes a new instance of the FMIceLinkCrc32 class.
+ (FMIceLinkCrc32 *)crc32WithPolynomial:(long long)polynomial

Parameters

polynomial

The polynomial.

Discussion

Initializes a new instance of the FMIceLinkCrc32 class.

Declared In

FMIceLinkCrc32.h

+ crc32WithPolynomial:reverseBits:

Initializes a new instance of the FMIceLinkCrc32 class.
+ (FMIceLinkCrc32 *)crc32WithPolynomial:(long long)polynomial reverseBits:(bool)reverseBits

Parameters

polynomial

The polynomial.

reverseBits

Whether to reverse the bits.

Discussion

Initializes a new instance of the FMIceLinkCrc32 class.

Declared In

FMIceLinkCrc32.h

– finalXorValue

Gets the value used to XOR the final result.
- (long long)finalXorValue

Discussion

Gets the value used to XOR the final result.

Declared In

FMIceLinkCrc32.h

– initialValue

Gets the initial value.
- (long long)initialValue

Discussion

Gets the initial value.

Declared In

FMIceLinkCrc32.h

– initWithPolynomial:

Initializes a new instance of the FMIceLinkCrc32 class.
- (instancetype)initWithPolynomial:(long long)polynomial

Parameters

polynomial

The polynomial.

Discussion

Initializes a new instance of the FMIceLinkCrc32 class.

Declared In

FMIceLinkCrc32.h

– initWithPolynomial:reverseBits:

Initializes a new instance of the FMIceLinkCrc32 class.
- (instancetype)initWithPolynomial:(long long)polynomial reverseBits:(bool)reverseBits

Parameters

polynomial

The polynomial.

reverseBits

Whether to reverse the bits.

Discussion

Initializes a new instance of the FMIceLinkCrc32 class.

Declared In

FMIceLinkCrc32.h

– polynomial

Gets the polynomial.
- (long long)polynomial

Discussion

Gets the polynomial.

Declared In

FMIceLinkCrc32.h

– reverseBits

Gets a value indicating whether to reverse the bits.
- (bool)reverseBits

Discussion

Gets a value indicating whether to reverse the bits.

Declared In

FMIceLinkCrc32.h

– setFinalXorValue:

Sets the value used to XOR the final result.
- (void)setFinalXorValue:(long long)value

Discussion

Sets the value used to XOR the final result.

Declared In

FMIceLinkCrc32.h

– setInitialValue:

Sets the initial value.
- (void)setInitialValue:(long long)value

Discussion

Sets the initial value.

Declared In

FMIceLinkCrc32.h