OpenQuizz
Une application de gestion des contenus pédagogiques
BufferedStream Class Reference
Inheritance diagram for BufferedStream:
Collaboration diagram for BufferedStream:

Public Member Functions

def __init__ (self, stream)
 
def tell (self)
 
def seek (self, pos)
 
def read (self, bytes)
 

Data Fields

 stream
 
 buffer
 
 position
 

Detailed Description

Buffering for streams that do not have buffering of their own

The buffer is implemented as a list of chunks on the assumption that
joining many strings will be slow since it is O(n**2)

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  stream 
)

Member Function Documentation

◆ read()

def read (   self,
  bytes 
)

◆ seek()

def seek (   self,
  pos 
)

◆ tell()

def tell (   self)

Field Documentation

◆ buffer

buffer

◆ position

position

◆ stream

stream

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