Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
b1df9d70
Commit
b1df9d70
authored
Dec 20, 2011
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interface for zlib
parent
6f3d1787
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
coro/zlib.pxd
coro/zlib.pxd
+43
-0
No files found.
coro/zlib.pxd
0 → 100644
View file @
b1df9d70
# -*- Mode: Cython -*-
# minimal interface to zlib
cdef
extern
from
"zlib.h"
:
ctypedef
struct
z_stream
:
unsigned
char
*
next_in
# next input byte
unsigned
int
avail_in
# number of bytes available at next_in
unsigned
long
total_in
# total nb of input bytes read so far
unsigned
char
*
next_out
# next output byte should be put there
unsigned
int
avail_out
# remaining free space at next_out
unsigned
long
total_out
# total nb of bytes output so far
void
*
zalloc
void
*
zfree
void
*
opaque
cdef
int
deflateInit
(
z_stream
*
,
int
)
cdef
int
deflate
(
z_stream
*
,
int
)
cdef
int
deflateEnd
(
z_stream
*
)
cdef
int
deflateReset
(
z_stream
*
)
cdef
int
inflateInit
(
z_stream
*
)
cdef
int
inflate
(
z_stream
*
,
int
)
cdef
int
inflateEnd
(
z_stream
*
)
cdef
int
inflateReset
(
z_stream
*
)
cdef
enum
COMPRESSION_LEVELS
:
Z_NO_COMPRESSION
,
Z_BEST_SPEED
,
Z_BEST_COMPRESSION
,
Z_DEFAULT_COMPRESSION
cdef
enum
RETURN_VALUES
:
Z_OK
,
Z_STREAM_END
,
Z_NEED_DICT
,
Z_ERRNO
,
Z_STREAM_ERROR
,
Z_DATA_ERROR
,
Z_MEM_ERROR
,
Z_BUF_ERROR
,
Z_VERSION_ERROR
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment