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

Public Member Functions

def __init__ (self)
 
def write (self, data)
 
def sha (self, as_hex=False)
 

Data Fields

 sha1
 

Detailed Description

Simple stream writer which produces a sha whenever you like as it degests
everything it is supposed to write

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Reimplemented in ZippedStoreShaWriter.

Member Function Documentation

◆ sha()

def sha (   self,
  as_hex = False 
)
:return: sha so far
:param as_hex: if True, sha will be hex-encoded, binary otherwise

◆ write()

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

Reimplemented in FDCompressedSha1Writer, ZippedStoreShaWriter, and FlexibleSha1Writer.

Field Documentation

◆ sha1

sha1

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