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

Public Member Functions

def __init__
 
def read
 
def close
 

Data Fields

 ifp
 
 pre_buffer
 
 post_buffer
 
 eof
 

Detailed Description

Read data via the RLE-coder

Definition at line 323 of file binhex.py.

Constructor & Destructor Documentation

def __init__ (   self,
  ifp 
)

Definition at line 326 of file binhex.py.

327  def __init__(self, ifp):
328  self.ifp = ifp
329  self.pre_buffer = ''
330  self.post_buffer = ''
331  self.eof = 0

Member Function Documentation

def close (   self)

Definition at line 374 of file binhex.py.

375  def close(self):
376  self.ifp.close()
def read (   self,
  wtd 
)

Definition at line 332 of file binhex.py.

References _Rledecoderengine._fill(), _Rledecoderengine.post_buffer, and _Rledecoderengine.pre_buffer.

333  def read(self, wtd):
334  if wtd > len(self.post_buffer):
335  self._fill(wtd-len(self.post_buffer))
336  rv = self.post_buffer[:wtd]
337  self.post_buffer = self.post_buffer[wtd:]
338  return rv

Field Documentation

eof

Definition at line 330 of file binhex.py.

ifp

Definition at line 327 of file binhex.py.

post_buffer

Definition at line 329 of file binhex.py.

pre_buffer

Definition at line 328 of file binhex.py.


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