home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1997 March / PCO3_97.ISO / filesbbs / os2 / lzo026.arj / LZO026.ZIP / lzo-0.26 / LZOAPI.TXT < prev    next >
Encoding:
Text File  |  1997-01-18  |  1.7 KB  |  59 lines

  1.  
  2. ============================================================================
  3. LZO -- a real-time data compression library
  4. ============================================================================
  5.  
  6. [ to be written ]
  7.  
  8.  
  9. memory model
  10. =============
  11. The documentation indicates that LZO requires 32 bit integers. It's
  12. not the integer size that really matters, though, but the memory
  13. model. If your memory model allows to access pointers at 32 bit
  14. offsets, then there is no problem at all - LZO works fine on my
  15. old Atari ST, which has 16 bit integers and a flat 32 bit memory model.
  16. 16 bit MSDOS using 'huge' 32 bit pointers is a workaround for this.
  17.  
  18. While with some minor changes LZO also would work with a strict
  19. 16 bit memory model, I don't officially support this because
  20. this limits the maximum block size to 64k - and this makes the
  21. library incompatible with other platforms, i.e. you cannot decompress
  22. larger blocks compressed on those platforms.
  23.  
  24.  
  25. public integral types
  26. =====================
  27. - lzo_uint:   used as size_t, must be 32 bits or more for compatibility
  28. - lzo_uint32: *must* be 32 bits or more
  29. - lzo_ptr_t:  must be big enough to hold all bits of a lzo_voidp
  30. - lzo_bool:   can store the values 0 and 1
  31.  
  32. - lzo_byte:   unsigned char (memory model)
  33. - lzo_voidp:  void pointer (memory model)
  34.  
  35.  
  36. public function types
  37. =====================
  38. - lzo_compress_t:
  39. - lzo_decompress_t:
  40. - lzo_progress_callback_t:
  41.  
  42.  
  43. naming conventions
  44. ==================
  45.  
  46. e.g. LZO1X-999:
  47.         !---------- algorithm category
  48.          !--------- algorithm type
  49.            !!!----- compression level (1-9, 99, 999)
  50.  
  51. LZO1*: strictly byte aligned
  52. LZO2*: uses bit-shifting, slower decompression
  53.  
  54.  
  55. memory requirements
  56. ===================
  57.  
  58.  
  59.