(bytes_read)
| 1484 | |
| 1485 | |
| 1486 | def _new_buffersize(bytes_read): |
| 1487 | # Parallels _io/fileio.c new_buffersize |
| 1488 | if bytes_read > 65536: |
| 1489 | addend = bytes_read >> 3 |
| 1490 | else: |
| 1491 | addend = 256 + bytes_read |
| 1492 | if addend < DEFAULT_BUFFER_SIZE: |
| 1493 | addend = DEFAULT_BUFFER_SIZE |
| 1494 | return bytes_read + addend |
| 1495 | |
| 1496 | |
| 1497 | class FileIO(RawIOBase): |
no outgoing calls
no test coverage detected
searching dependent graphs…