📄 readme_grab.txt
字号:
================================================
ziptest.c
Linux shared library libGrab.so libGrab.a
2006-02-28 hall
================================================
AppWizard is demonstrates the direction for the Shared library in Linux :
libGrab.so libGrab.a. libGrab.so is shared library in Linux for compress
and uncompress.
This file contains a summary of what you will find in each of the files that
make up your application.
/////////////////////////////////////////////////////////////////////////////////////////////
Grab.h
This is the main header file for the application.It includes some parameter
manifesto and declares the functions.You must include the header file.
The interface functions:
int Grab (uchr *GrabBuffer, /* out: Destination buffer */
ulong *dwBufLenout, /* out: length of output from Grab */
uchar *lpBuffer, /* in: Source Buffer */
ulong *lsbufflen, /* in: length of input Buffer */
uchar leve
);
The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9:
1 gives best speed, 9 gives best compression, 0 gives no compression at
all (the input data is simply copied a block at a time).
Z_DEFAULT_COMPRESSION requests a default compromise between speed and
compression (currently equivalent to level 6).
int unGrab (uchar *lDestpBuffer, /* out: Destination buffer */
ulong *dwBufLen, /* (in/out) in:length memset Buffer
out: length of output from Grab */
uchar *GrabBuffer, /* in: Source Buffer */
ulong *lsbufflen /* in: length of input Buffer */
);
libGrab.so libGrab.a
The libreary should be include in the compiled commend.
For example: gcc -g -o ziptest ziptest.c libGrab.so
Or : copy libGrab.so to /lib and compile
gcc -g -o ziptest ziptest.c -lGrab
///////////////////////////////////////////////////////////////////////////////////////////////
This Linux shared library(libEncod.so and libDecod.so) is made from the
source code.Frame as follows:
Grab------- MosesGrab---- source(*.c *.h )
| |--- makefile--> libGrab.so libGrab.a
|
|---- libtest (my test code: ziptest.c)
////////////////////////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -