It’s just the standard convention for file positions across virtually all languages: refer to an offset relative to the start of the file (and hence be zero-based).
This convention is used even in languages like Matlab (fseek
), Fortran (fseek
), R (seek
), and Lua (file::seek
) that are otherwise 1-based by default, so it would be weird for Julia to differ.