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

Public Member Functions

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

Data Fields

 writer
 
- Data Fields inherited from Sha1Writer
 sha1
 

Detailed Description

Writer producing a sha1 while passing on the written bytes to the given
write function

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  writer 
)

Member Function Documentation

◆ write()

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

Reimplemented from Sha1Writer.

Field Documentation

◆ writer

writer

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