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

Function _rangeiter

thirdparty/bottle/bottle.py:3216–3224  ·  view source on GitHub ↗

Yield chunks from a range in a file.

(fp, offset, limit, bufsize=1024 * 1024)

Source from the content-addressed store, hash-verified

3214
3215
3216def _rangeiter(fp, offset, limit, bufsize=1024 * 1024):
3217 """ Yield chunks from a range in a file. """
3218 fp.seek(offset)
3219 while limit > 0:
3220 part = fp.read(min(limit, bufsize))
3221 if not part:
3222 break
3223 limit -= len(part)
3224 yield part
3225
3226
3227def static_file(filename, root,

Callers 1

static_fileFunction · 0.85

Calls 2

seekMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…