ACS Audio Jack iOS Library  1.0.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties
ACRCRC16 Class Reference

The ACRCRC16 class is used to compute a CRC16 checksum from data provided as input value. More...

#import <ACRCRC16.h>

Inheritance diagram for ACRCRC16:

Instance Methods

(uint16_t) - value
 Returns the CRC16 checksum for all input received. More...
 
(void) - reset
 Resets the CRC16 checksum to it initial state. More...
 
(void) - updateWithBytes:length:
 Update this CRC16 checksum with the contents of buffer and reading length bytes of data. More...
 

Detailed Description

The ACRCRC16 class is used to compute a CRC16 checksum from data provided as input value.

Author
Godfrey Chung
Version
1.0, 28 Mar 2013

Method Documentation

- (void) reset

Resets the CRC16 checksum to it initial state.

- (void) updateWithBytes: (const void *)  bytes
length: (NSUInteger)  length 

Update this CRC16 checksum with the contents of buffer and reading length bytes of data.

Parameters
bytesthe byte array from which to read the bytes.
lengththe number of bytes to read from buffer.
- (uint16_t) value

Returns the CRC16 checksum for all input received.

Returns
the checksum for this instance.

The documentation for this class was generated from the following file: