Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Defaults

Config Defaults

FieldDefault
buffer_capacity65536 (64 KiB)
state_dirPlatform cache directory (see below)
auto_save_statefalse
auto_save_state_bytes104857600 (100 MiB)
auto_load_statefalse
verify_statetrue

Platform State Directories

The default state_dir is <cache_dir>/preader, where <cache_dir> is:

PlatformPath
Linux$XDG_CACHE_HOME/preader or ~/.cache/preader
macOS~/Library/Caches/preader
Windows{FOLDERID_LocalAppData}/preader

Iterator Options Defaults

FieldDefault
start0
end18446744073709551615 (u64::MAX)
skip0
limit18446744073709551615 (u64::MAX)

Iterator Specific Defaults

OptionDefault
Chunk Size1024 bytes
Segment Delimiterb',' (comma, 0x2C)
keependsfalse
skip_emptyfalse
align / align_startfalse
drop_partialfalse
keep / keep_delimiterfalse

Constants

ConstantValueDescriptionRustPython
DEFAULT_BUFFER_CAPACITY65536Read buffer size in bytes✓✗
DEFAULT_AUTO_SAVE_STATE_BYTES104857600Autosave byte threshold✓✗
DEFAULT_VERIFY_STATEtrueVerify file metadata on resume✓✗
DEFAULT_CHUNK_SIZE1024Default chunk size✓✓
DEFAULT_DELIMITERb','Default segment delimiter✓✓
FINGERPRINT_SAMPLE_BYTES4096Bytes read for fingerprint✓✓
STATE_DIR_NAME"preader"Subdirectory under cache dir✓✗
STATE_FILE_EXTENSION"state.json"Extension for state files✓✗
TMP_FILE_EXTENSION"tmp"Temp file extension for atomic writes✓✗

Python also exposes DEFAULT_CONFIG and DEFAULT_OPTIONS as pre-built instances with all defaults applied