Name | Date | Size | |
---|---|---|---|
.. | 05-Nov-2014 | 4 KiB | |
fd_file.cc | 05-Nov-2014 | 3.7 KiB | |
fd_file.h | 05-Nov-2014 | 2.5 KiB | |
fd_file_test.cc | 05-Nov-2014 | 2 KiB | |
mapped_file.cc | 05-Nov-2014 | 4.4 KiB | |
mapped_file.h | 05-Nov-2014 | 3.2 KiB | |
mapped_file_test.cc | 05-Nov-2014 | 8.1 KiB | |
null_file.cc | 05-Nov-2014 | 1.3 KiB | |
null_file.h | 05-Nov-2014 | 1.6 KiB | |
null_file_test.cc | 05-Nov-2014 | 2.1 KiB | |
random_access_file.h | 05-Nov-2014 | 2.5 KiB | |
random_access_file_test.h | 05-Nov-2014 | 6 KiB | |
random_access_file_utils.cc | 05-Nov-2014 | 1.2 KiB | |
random_access_file_utils.h | 05-Nov-2014 | 1.1 KiB | |
random_access_file_utils_test.cc | 05-Nov-2014 | 1.5 KiB | |
README | 05-Nov-2014 | 625 | |
string_file.cc | 05-Nov-2014 | 2.3 KiB | |
string_file.h | 05-Nov-2014 | 1.7 KiB | |
string_file_test.cc | 05-Nov-2014 | 1.1 KiB |
README
1A simple C++ wrapper for Unix file I/O. 2 3This is intended to be lightweight and easy to use, similar to Java's 4RandomAccessFile and related classes. The usual C++ idioms of RAII and "you 5don't pay for what you don't use" apply. 6 7In particular, the basic RandomAccessFile interface is kept small and simple so 8it's trivial to add new implementations. 9 10This code will not log, because it can't know whether that's appropriate in 11your application. 12 13This code will, in general, return -errno on failure. If an operation consisted 14of multiple sub-operations, it will return the errno corresponding to the most 15relevant operation. 16