[Interest] Signed return type of QIODevice::pos() - why?
lloyd konneker
bootch at nc.rr.com
Thu Nov 13 17:26:58 CET 2014
Possibly some underlying file systems allow negative values, and Qt did
not want to adapt to prevent negative values.
In other words, it depends on the underlying implementation.
See discussions about the off_t type in unix.
http://pubs.opengroup.org/onlinepubs/009695399/functions/lseek.html
" A negative file offset may be valid for some devices in some
implementations."
More information about the Interest
mailing list