Adds class for uncompressing transparently compressed files on line

This commit is contained in:
2016-03-29 18:21:04 +02:00
parent 2dfab3f378
commit a9eed1f5d9
3 changed files with 127 additions and 0 deletions

View File

@ -0,0 +1,16 @@
#cython: language_level=3
cdef class MagicKeyFile:
cdef str stream_mode
cdef object binary
cdef bytes key
cdef int keylength
cdef int pos
cpdef bytes read(self,int size=?)
cpdef int tell(self)
cdef class CompressedFile:
cdef object accessor