/** @file\r
UEFI Decompress Library implementation refer to UEFI specification.\r
\r
- Copyright (c) 2006 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
}\r
\r
//\r
- // Caculate additional bit count read to update mBitCount\r
+ // Calculate additional bit count read to update mBitCount\r
//\r
Sd->mBitCount = (UINT16) (Sd->mBitCount - NumOfBits);\r
\r
/**\r
Reads code lengths for the Extra Set or the Position Set.\r
\r
- Read in the Extra Set or Pointion Set Length Arrary, then\r
+ Read in the Extra Set or Position Set Length Array, then\r
generate the Huffman code mapping for them.\r
\r
@param Sd The global scratch data.\r
Sd->mBlockSize = (UINT16) GetBits (Sd, 16);\r
\r
//\r
- // Read in the Extra Set Code Length Arrary,\r
+ // Read in the Extra Set Code Length Array,\r
// Generate the Huffman code mapping table for Extra Set.\r
//\r
Sd->mBadTableFlag = ReadPTLen (Sd, NT, TBIT, 3);\r
}\r
\r
//\r
- // Read in and decode the Char&Len Set Code Length Arrary,\r
+ // Read in and decode the Char&Len Set Code Length Array,\r
// Generate the Huffman code mapping table for Char&Len Set.\r
//\r
ReadCLen (Sd);\r
\r
//\r
- // Read in the Position Set Code Length Arrary, \r
+ // Read in the Position Set Code Length Array,\r
// Generate the Huffman code mapping table for the Position Set.\r
//\r
Sd->mBadTableFlag = ReadPTLen (Sd, MAXNP, Sd->mPBit, (UINT16) (-1));\r
Sd->mSrcBase = (UINT8 *)Src;\r
Sd->mDstBase = Dst;\r
//\r
- // CompSize and OrigSize are caculated in bytes\r
+ // CompSize and OrigSize are calculated in bytes\r
//\r
Sd->mCompSize = CompSize;\r
Sd->mOrigSize = OrigSize;\r