Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
binhex._Rlecoderengine Class Reference

List of all members.

Public Member Functions

def __init__
def write
def close

Public Attributes

 ofp
 data

Detailed Description

Write data to the RLE-coder in suitably large chunks

Definition at line 117 of file binhex.py.


Constructor & Destructor Documentation

def binhex._Rlecoderengine.__init__ (   self,
  ofp 
)

Definition at line 120 of file binhex.py.

00120 
00121     def __init__(self, ofp):
00122         self.ofp = ofp
00123         self.data = b''

Here is the caller graph for this function:


Member Function Documentation

Definition at line 132 of file binhex.py.

00132 
00133     def close(self):
00134         if self.data:
00135             rledata = binascii.rlecode_hqx(self.data)
00136             self.ofp.write(rledata)
00137         self.ofp.close()
00138         del self.ofp

def binhex._Rlecoderengine.write (   self,
  data 
)

Definition at line 124 of file binhex.py.

00124 
00125     def write(self, data):
00126         self.data = self.data + data
00127         if len(self.data) < REASONABLY_LARGE:
00128             return
00129         rledata = binascii.rlecode_hqx(self.data)
00130         self.ofp.write(rledata)
00131         self.data = b''


Member Data Documentation

Definition at line 122 of file binhex.py.

Definition at line 121 of file binhex.py.


The documentation for this class was generated from the following file: