Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
_Rlecoderengine Class Reference

Public Member Functions

def __init__
 
def write
 
def close
 

Data Fields

 ofp
 
 data
 

Detailed Description

Write data to the RLE-coder in suitably large chunks

Definition at line 158 of file binhex.py.

Constructor & Destructor Documentation

def __init__ (   self,
  ofp 
)

Definition at line 161 of file binhex.py.

162  def __init__(self, ofp):
163  self.ofp = ofp
164  self.data = ''

Member Function Documentation

def close (   self)

Definition at line 173 of file binhex.py.

References _Hqxcoderengine.data, _Rlecoderengine.data, simple_producer.data, _Hqxcoderengine.ofp, and _Rlecoderengine.ofp.

174  def close(self):
175  if self.data:
176  rledata = binascii.rlecode_hqx(self.data)
177  self.ofp.write(rledata)
178  self.ofp.close()
179  del self.ofp
def write (   self,
  data 
)

Definition at line 165 of file binhex.py.

References _Hqxcoderengine.data, _Rlecoderengine.data, and simple_producer.data.

166  def write(self, data):
167  self.data = self.data + data
168  if len(self.data) < REASONABLY_LARGE:
169  return
170  rledata = binascii.rlecode_hqx(self.data)
171  self.ofp.write(rledata)
172  self.data = ''

Field Documentation

data

Definition at line 163 of file binhex.py.

ofp

Definition at line 162 of file binhex.py.


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