Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Static Public Attributes

# ZlibArchive Class Reference

Inheritance diagram for ZlibArchive:

List of all members.

## Public Member Functions
def | __init__
def | add
def | extract
## Public Attributes
| os
## Static Public Attributes
int | HDRLEN = 12
int | LEVEL = 9
string | MAGIC = 'PYZ\0'
int | TOCPOS = 8
dictionary | TOCTMPLT = {}
int | TRLLEN = 0

## Detailed Description

    A subclass of Archive that compresses entries with zlib
       and uses a (marshalled) dict as a table of contents

## Constructor & Destructor Documentation

def __init__ | ( |  | self,
|  |  | path = `None`,
|  |  | start = `0`
| ) |  |

     Initialize an Archive. If path is omitted, it will be an empty Archive.
     start is the seek position within path where the Archive starts.

Reimplemented from Archive.

## Member Function Documentation

def add | ( |  | self,
|  |  | entry
| ) |  |

    Add an entry.

       ENTRY is a sequence where entry[0] is name and entry[1] is full path name.
       zlib compress the code object, and build a toc entry

Reimplemented from Archive.

def extract | ( |  | self,
|  |  | name
| ) |  |

    Get the code object for NAME.

       Return None if name is not in the table of contents.
       Otherwise, return a tuple (ispkg, code)

Reimplemented from Archive.

## Member Data Documentation

int HDRLEN = 12`[static]`

Reimplemented from Archive.

int LEVEL = 9`[static]`

string MAGIC = 'PYZ\0'`[static]`

Reimplemented from Archive.

os

Reimplemented from Archive.

int TOCPOS = 8`[static]`

Reimplemented from Archive.

dictionary TOCTMPLT = {}`[static]`

Reimplemented from Archive.

int TRLLEN = 0`[static]`

Reimplemented from Archive.

All Classes Namespaces Functions Variables Enumerations Enumerator Properties