⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lzo.h

📁 liu7788414
💻 H
字号:

#ifndef _LZO_H_
#define _LZO_H_

#ifdef __cplusplus
	extern "C" {
#endif

#define LZO_E_OK                    0
#define LZO_E_ERROR                 (-1)
#define LZO_E_OUT_OF_MEMORY         (-2)    /* not used right now */
#define LZO_E_NOT_COMPRESSIBLE      (-3)    /* not used right now */
#define LZO_E_INPUT_OVERRUN         (-4)
#define LZO_E_OUTPUT_OVERRUN        (-5)
#define LZO_E_LOOKBEHIND_OVERRUN    (-6)
#define LZO_E_EOF_NOT_FOUND         (-7)
#define LZO_E_INPUT_NOT_CONSUMED    (-8)

/*----------------------------------------------------------------
 * it's only for 32-bit system
 *----------------------------------------------------------------*/
typedef int                         lzo_ptrdiff_t;
typedef unsigned long               lzo_ptr_t;
typedef long                        lzo_sptr_t;
typedef unsigned int                lzo_uint32;
typedef int                         lzo_int32;
typedef unsigned int                lzo_uint;
typedef int                         lzo_int;

#define lzo_byte                    unsigned char  
#define lzo_bytep                   unsigned char*
#define lzo_charp                   char*
#define lzo_voidp                   void*
#define lzo_shortp                  short*
#define lzo_ushortp                 unsigned short*
#define lzo_uint32p                 lzo_uint32*
#define lzo_int32p                  lzo_int32*
#define lzo_uintp                   lzo_uint*
#define lzo_intp                    lzo_int*
#define lzo_voidpp                  lzo_voidp*
#define lzo_bytepp                  lzo_bytep*


int
lzo1x_decompress
(
    const unsigned char      *in,
    lzo_uint                 in_len,
    unsigned char            *out,
    lzo_uint                 *out_len,
    void                     *wrkmem
);

int
lzo1x_1_compress
(
    const unsigned char      *in,
    lzo_uint                 in_len,
    unsigned char            *out,
    lzo_uint                 *out_len,
    void                     *wrkmem
);

#ifdef __cplusplus
	}
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -