ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

FF_T_UINT16 FF_GetCRC16 ( FF_T_UINT8 pbyData,
FF_T_UINT32  stLength 
)

Definition at line 188 of file ff_crc.c.

Referenced by FF_CreateShortName(), and FF_ShortNameExists().

                                                                   {
    FF_T_UINT8  bTableValue;
    FF_T_UINT16 wCRC = 0;

    while (stLength--)    {
        bTableValue = (FF_T_UINT8)((wCRC & 0x00FF) ^ *pbyData++);
        wCRC = (FF_T_UINT16)(((crc16_table_high[bTableValue]) << 8)
             + (crc16_table_low[bTableValue] ^ ((wCRC >> 8) & 0x00FF)));
    }

    return wCRC;
}

Generated on Sun May 27 2012 05:56:39 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.