Qortora · Search · Indexed page

zlib.net.ruFetched 2026-08-17T14:49:30Z

zlib - ���������� ��� ������ ������ ���������� ������ 1.1.4

zlib - ���������� ��� ������ ������ ���������� ������ 1.1.4 ����������� �� ���������� zlib 1.1.4 ���������� ������ �…

Open original source · Full cached text

zlib - ���������� ��� ������ ������ ���������� ������ 1.1.4 ����������� �� ���������� zlib 1.1.4 ���������� ������ �������� ���������� ������� �������� ������� ����������� ������� ������� �������� ����������� ���� ��������� z_stream_s ��������� ������ ��������� ����� �����. ������ 'zlib' ���������� ��� ������ ������ ���������� ������ 1.1.4, 11 ����� 2002 ���� Copyright (C) 1995-2005 Jean-loup Gailly � Mark Adler ��� ���������� ������������ '��� ����', ��� �����-���� ����� ��� ��������������� ��������. �� ��� ����� ��������������� ������ �� ����� �����-���� ��������������� � ������ ������ ������ ���������� ������������� ������ ����������. ����������� ���� ������������ ��� ���������� ��� ����� �����, � ��� ����� � ��� ������������ ����������, � ����� �������� �� � �������������� �������� ��� ���������� ��������� �������: �������� ���������� �� ������ ���� �������; �� �� ������ ��������, ��� ������ �� �������� ������������ ����������. ���� �� ����������� ��� ���������� � ����� ����������� ��������, �� ������ �� ������� ���������� ���� �� ����������, �� ��� �� �������� ������������ �����������. ���������� ������ �������� ������� ������ ���� ��������� ����������� � �� ������ ���������� �� �������� ����������. ��� ��������� �� ����� ���� ������� ���� �������� ��� �����-���� �������� ��������������� �������� �������. Jean-loup Gailly [email protected] Mark Adler [email protected] ������ ������, ������� ������������ ����������� zlib, ������ � RFC (Request for Comments) � 1950 �� 1952 � ������ rfc1950.txt (zlib ������), rfc1951.txt (������ ������) � rfc1952.txt (gzip ������). ��� ����������� ������� �� ������ zlib.h, ����� - piaip , ������� �� ������� �.������. �������� http://www.zlib.org - ����������� ���� ���������� zlib. �������� ���������� ������ 'zlib' ������������� ������� ���������� � ������������ � ������, ������� �������� ����������� �������� ������. ��� ������ ���������� ������������ ������ ���� ����� ������ (��������), � ����������� ������ ��������� ����� ��������� � ��� �� ��������� �����������. ������ ����� ���� ��������� �� ���� ������, ���� ������ ���������� ������� (� �������, ���� ������� ���� ������������ � ������), ��� �� ������ ����� ���� ��������� ����� ������������ ������� ������� ����������. � ��������� ������ ���������� ������ ���������� ��������� ������� ������� ����� � �������� ������� �������� ����� ����� ������ ������� ������� ����������. ���������� ����� ������������ ������ � ������ ������ � ������� gzip (.gz) � ����������� ������� �� ������������ � stdio. ���������� �� ������������ �����-���� �����, ������������ �������� � ���������. ������� ��������� ��������� ��������������� ������, ��� ��� ���������� �� ������, ���� ���� �� �� ���� ����� ������ ���������� ������. ���������� ������� ������������� ���������� ������� ����������� �� ������ �������� ������-��������������� �������. ����� ��������� ���������, ��������� ����� �������� ����������������� ���������� (������� ������, ����� ������������ ������, ����������� ������� ������������� ������). �������� ��� ���� ���������� ������� ����� ���� ����� �������������, ���� ��� ����������� �����-���� ����������� �����. �������� ������� int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); int compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level); int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); typedef voidp gzFile; gzFile gzopen (const char *path, const char *mode); gzFile gzdopen (int fd, const char *mode); int gzsetparams (gzFile file, int level, int strategy); int gzread (gzFile file, voidp buf, unsigned len); int gzwrite (gzFile file, const voidp buf, unsigned len); int VA gzprintf (gzFile file, const char *format, ...); int gzputs (gzFile file, const char *s); char * gzgets (gzFile file, char *buf, int len); int gzputc (gzFile file, int c); int gzgetc (gzFile file); int gzflush (gzFile file, int flush); z_off_t gzseek (gzFile file, z_off_t offset, int whence); z_off_t gztell (gzFile file); int gzrewind (gzFile file); int gzeof (gzFile file); int gzclose (gzFile file); const char * gzerror (gzFile file, int *errnum); �������� ������� int compress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); ������� ������ �� ��������� ������ � ����� ����������. sourceLen �������� ����� � ������ ��������� ������. ����� ������� �������, destLen ������ ��������� ������������ ������ ������ ����������, ������� ������ ���� �� ������� ���� �� 0.1% ������ ��� sourceLen ���� 12 ����. ����� ������ �������, destLen �������� ���������� ������ ������� ������. ��� ������� ����� ���� ������������ ��� ���������� ����� ����� �� ���� ������, ���� ���� ������� ���� ������������ � ������. ������� compress ����������: Z_OK � ������ ������ Z_MEM_ERROR ���� ������������ ������ Z_BUF_ERROR ���� ������������ ����� � ������ ���������� int compress2 (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level); ������� ������ �� ��������� ������ � ����� ����������. �������� level ����� �� �� ��������, ��� � � deflateInit. sourceLen �������� ����� � ������ ��������� ������. ����� ������� �������, destLen ������ ��������� ������������ ������ ������ ����������, ������� ������ ���� �� ������� ���� �� 0.1% ������ ��� sourceLen ���� 12 ����. ����� ������ �������, destLen �������� ���������� ������ ������� ������. ������� compress2 ����������: Z_OK � ������ ������ Z_MEM_ERROR ���� ������������ ������ Z_BUF_ERROR ���� ������������ ����� � ������ ���������� Z_STRE…