MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / read

Method read

thirdparty/keepalive/keepalive.py:438–452  ·  view source on GitHub ↗
(self, amt=None)

Source from the content-addressed store, hash-verified

436 return self._url
437
438 def read(self, amt=None):
439 # the _rbuf test is only in this first if for speed. It's not
440 # logically necessary
441 if self._rbuf and not amt is None:
442 L = len(self._rbuf)
443 if amt > L:
444 amt -= L
445 else:
446 s = self._rbuf[:amt]
447 self._rbuf = self._rbuf[amt:]
448 return s
449
450 s = self._rbuf + self._raw_read(amt)
451 self._rbuf = b""
452 return s
453
454 def readline(self, limit=-1):
455 data = b""

Callers 5

parseMethod · 0.95
error_handlerFunction · 0.45
continuityFunction · 0.45
fetchFunction · 0.45
test_timeoutFunction · 0.45

Calls

no outgoing calls

Tested by 1

test_timeoutFunction · 0.36