Skip to content
Browse files

modernize pyrex -> cython

  • Loading branch information...
1 parent 8123966 commit b9552455842e01a7dd6f2ae14d9f65af49406199 @samrushing samrushing committed Jun 18, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 coro/zstack_zlib.pxd
View
11 coro/zstack_zlib.pxd
@@ -0,0 +1,11 @@
+# -*- Mode: Cython -*-
+
+cimport zlib
+
+cdef class zstack:
+ cdef zlib.z_stream squish, unsquish
+ # this buffer is only used for compression
+ cdef unsigned char * buffer
+ cdef int buffer_size
+ cdef size_t deflate (self, void * base, size_t size)
+ cdef size_t inflate (self, void * dst, size_t dsize, void * src, size_t ssize)

0 comments on commit b955245

Please sign in to comment.
Something went wrong with that request. Please try again.