MCPcopy Create free account
hub / github.com/ActiveState/code / flush

Method flush

recipes/Python/572196_RSA/recipe-572196.py:202–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.f.write(encrypt(self.data[:bytes],e,n,bits))
201 self.wbuf=self.wbuf[bytes:]
202 def flush(self):
203 self.f.write(encrypt(self.wbuf,self.e,self.n,self.bits))
204 self.wbuf=""
205 def read(self,bytes=None):
206 if bytes==None:
207 self.rbuf+=decrypt(self.f.read(),self.d,self.n,self.bits)

Callers 15

closeMethod · 0.95
__editorMethod · 0.45
__doEmergeMethod · 0.45
do_POSTMethod · 0.45
do_GETMethod · 0.45
report_404Method · 0.45
pyrunFunction · 0.45
do_POSTMethod · 0.45
runMethod · 0.45
recipe-511444.pyFile · 0.45
zipitFunction · 0.45
mainMenuFunction · 0.45

Calls 2

encryptFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected