Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

static byte_t UnPack ( void   )  [static]

Unpack a byte

Returns:
the unpacked byte

Definition at line 583 of file unarc.c.

References GetByte(), Huffin(), Status, and unc().

Referenced by ReadARC().

{
  switch (entry.mode) {

  case 0:             /* Stored */
  case 1:             /* Packed (Run-Length) */
    return GetByte();

  case 2:             /* Squeezed (Huffman only) */
  case 4:             /* Squashed (Huffman + Run-Length) */
    return Huffin();

  case 3:             /* Crunched */
  case 5:             /* Crunched in one pass */
    return unc();

  default:            /* Otherwise ERROR */
    Status = EOF;
    return 0;
  }
}


Generated by  Doxygen 1.6.0   Back to index