home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / text / tex / pastex / source / driver / util / iff / apack.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-27  |  520 b   |  16 lines

  1. #ifndef APACK_H
  2. #define APACK_H
  3.  
  4. /* This macro computes the worst case packed size of a "row" of bytes. */
  5. #define MaxPackedSize(rowSize)  ( (rowSize) + ( ((rowSize)+127) >> 7 ) )
  6.  
  7. /* Given POINTERS to POINTER variables, packs one row, updating the source
  8.  * and destination pointers. Returns the size in bytes of the packed row.
  9.  * ASSUMES destination buffer is large enough for the packed row.
  10.  * See MaxPackedSize. */
  11. extern __stdargs LONG packrow(BYTE **, BYTE **, LONG);
  12.         /*  pSource, pDest,   rowSize */
  13.  
  14. #endif
  15.  
  16.