Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
README | D | 22-Nov-2023 | 625 | 16 | 11 | |
fd_file.cc | D | 22-Nov-2023 | 6.9 KiB | 249 | 197 | |
fd_file.h | D | 22-Nov-2023 | 4.2 KiB | 122 | 58 | |
fd_file_test.cc | D | 22-Nov-2023 | 2.1 KiB | 80 | 52 | |
mapped_file.cc | D | 22-Nov-2023 | 4.7 KiB | 181 | 141 | |
mapped_file.h | D | 22-Nov-2023 | 3.3 KiB | 104 | 47 | |
mapped_file_test.cc | D | 22-Nov-2023 | 8.4 KiB | 288 | 223 | |
null_file.cc | D | 22-Nov-2023 | 1.3 KiB | 62 | 35 | |
null_file.h | D | 22-Nov-2023 | 1.6 KiB | 51 | 20 | |
null_file_test.cc | D | 22-Nov-2023 | 2.1 KiB | 68 | 34 | |
random_access_file.h | D | 22-Nov-2023 | 2.5 KiB | 69 | 16 | |
random_access_file_test.h | D | 22-Nov-2023 | 6.1 KiB | 184 | 114 | |
random_access_file_utils.cc | D | 22-Nov-2023 | 1.2 KiB | 39 | 17 | |
random_access_file_utils.h | D | 22-Nov-2023 | 1.1 KiB | 31 | 7 | |
random_access_file_utils_test.cc | D | 22-Nov-2023 | 1.5 KiB | 57 | 28 | |
string_file.cc | D | 22-Nov-2023 | 2.3 KiB | 99 | 61 | |
string_file.h | D | 22-Nov-2023 | 1.7 KiB | 60 | 26 | |
string_file_test.cc | D | 22-Nov-2023 | 1.1 KiB | 43 | 20 |
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