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

Public Member Functions

def __init__ (self, fileobj, offset, size, blockinfo=None)
 
def seekable (self)
 
def tell (self)
 
def seek (self, position)
 
def read (self, size=None)
 

Data Fields

 fileobj
 
 offset
 
 size
 
 position
 
 map_index
 
 map
 

Detailed Description

A thin wrapper around an existing file object that
   provides a part of its data as an individual file
   object.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  fileobj,
  offset,
  size,
  blockinfo = None 
)

Member Function Documentation

◆ read()

def read (   self,
  size = None 
)
Read data from the file.

◆ seek()

def seek (   self,
  position 
)
Seek to a position in the file.

◆ seekable()

def seekable (   self)

◆ tell()

def tell (   self)
Return the current file position.

Field Documentation

◆ fileobj

fileobj

◆ map

map

◆ map_index

map_index

◆ offset

offset

◆ position

position

◆ size

size

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