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

Public Member Functions

def __init__ (self, fd)
 
def write (self, data)
 
def close (self)
 
- Public Member Functions inherited from Sha1Writer
def __init__ (self)
 
def sha (self, as_hex=False)
 

Data Fields

 fd
 
 zip
 
- Data Fields inherited from Sha1Writer
 sha1
 

Static Public Attributes

 exc
 

Detailed Description

Digests data written to it, making the sha available, then compress the
data and write it to the file descriptor

**Note:** operates on raw file descriptors
**Note:** for this to work, you have to use the close-method of this instance

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  fd 
)

Member Function Documentation

◆ close()

def close (   self)

◆ write()

def write (   self,
  data 
)
:raise IOError: If not all bytes could be written
:return: length of incoming data

Reimplemented from Sha1Writer.

Field Documentation

◆ exc

exc
static

◆ fd

fd

◆ zip

zip

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