MCPcopy Index your code
hub / github.com/sshuttle/sshuttle / fill

Method fill

sshuttle/ssnet.py:258–265  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

256 return b('') # unexpected error... we'll call it EOF
257
258 def fill(self):
259 if self.buf:
260 return
261 rb = self.uread()
262 if rb:
263 self.buf.append(rb)
264 if rb == b(''): # empty string means EOF; None means temporarily empty
265 self.noread()
266
267 def copy_to(self, outwrap):
268 if self.buf and self.buf[0]:

Callers

nothing calls this directly

Calls 3

ureadMethod · 0.95
noreadMethod · 0.95
bFunction · 0.90

Tested by

no test coverage detected