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

Method write

recipes/Python/572196_RSA/recipe-572196.py:196–201  ·  view source on GitHub ↗
(self,data)

Source from the content-addressed store, hash-verified

194 self.rbuf=""
195 self.wbuf=""
196 def write(self,data):
197 self.wbuf+=data
198 e,n,bits,bytes=self.e,self.n,self.bits,self.bits//8
199 while bytes<len(self.wbuf):
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=""

Callers 15

do_POSTMethod · 0.45
do_GETMethod · 0.45
report_404Method · 0.45
recipe-546517.pyFile · 0.45
__init__Method · 0.45
__init__Method · 0.45
flushMethod · 0.45
save_global_bynameFunction · 0.45
save_typeFunction · 0.45
fetch_quoteFunction · 0.45
zipitFunction · 0.45
un_zipitFunction · 0.45

Calls 1

encryptFunction · 0.70

Tested by

no test coverage detected