Package dpkt :: Module gzip :: Class Gzip
[show private | hide private]
[frames | no frames]

Type Gzip

object --+    
         |    
    Packet --+
             |
            Gzip


Method Summary
  compress(self)
Compress self.data.
  decompress(self)
Return decompressed payload.
  pack_hdr(self)
Return packed header string.
  unpack(self, buf)
Unpack packet header fields from buf, and set self.data.
    Inherited from Packet
  __init__(self, *args, **kwargs)
Packet constructor with ([buf], [field=val,...]) prototype.
  __getitem__(self, k)
  __len__(self)
  __repr__(self)
  __str__(self)
  pack(self)
Return packed header + self.data string.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...

Class Variable Summary
tuple __hdr__ = (('magic', '2s', '\x1f\x8b'), ('method', 'B', ...
dict __hdr_defaults__ = {'comment': '', 'magic': '\x1f\x8b', ...
list __hdr_fields__ = ['magic', 'method', 'flags', 'mtime', '...
str __hdr_fmt__ = '>2sBBIBB0s0s0s'
int __hdr_len__ = 10                                                                    

Method Details

compress(self)

Compress self.data.

decompress(self)

Return decompressed payload.

pack_hdr(self)

Return packed header string.
Overrides:
dpkt.dpkt.Packet.pack_hdr (inherited documentation)

unpack(self, buf)

Unpack packet header fields from buf, and set self.data.
Overrides:
dpkt.dpkt.Packet.unpack (inherited documentation)

Class Variable Details

__hdr__

Type:
tuple
Value:
(('magic', '2s', '\x1f\x8b'),
 ('method', 'B', 8),
 ('flags', 'B', 0),
 ('mtime', 'I', 0),
 ('xflags', 'B', 0),
 ('os', 'B', 3),
 ('extra', '0s', ''),
 ('filename', '0s', ''),
...                                                                    

__hdr_defaults__

Type:
dict
Value:
{'comment': '',
 'extra': '',
 'filename': '',
 'flags': 0,
 'magic': '\x1f\x8b',
 'method': 8,
 'mtime': 0,
 'os': 3,
...                                                                    

__hdr_fields__

Type:
list
Value:
['magic',
 'method',
 'flags',
 'mtime',
 'xflags',
 'os',
 'extra',
 'filename',
...                                                                    

__hdr_fmt__

Type:
str
Value:
'>2sBBIBB0s0s0s'                                                       

__hdr_len__

Type:
int
Value:
10                                                                    

Generated by Epydoc 2.1 on Sun Oct 1 11:24:12 2006 http://epydoc.sf.net