android13/art/libartbase/base/unix_file
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
README initial 2024-06-22 20:45:49 +08:00
fd_file.cc initial 2024-06-22 20:45:49 +08:00
fd_file.h initial 2024-06-22 20:45:49 +08:00
fd_file_test.cc initial 2024-06-22 20:45:49 +08:00
random_access_file.h initial 2024-06-22 20:45:49 +08:00
random_access_file_test.h initial 2024-06-22 20:45:49 +08:00
random_access_file_utils.cc initial 2024-06-22 20:45:49 +08:00
random_access_file_utils.h initial 2024-06-22 20:45:49 +08:00

README

A simple C++ wrapper for Unix file I/O.

This is intended to be lightweight and easy to use, similar to Java's
RandomAccessFile and related classes. The usual C++ idioms of RAII and "you
don't pay for what you don't use" apply.

In particular, the basic RandomAccessFile interface is kept small and simple so
it's trivial to add new implementations.

This code will not log, because it can't know whether that's appropriate in
your application.

This code will, in general, return -errno on failure. If an operation consisted
of multiple sub-operations, it will return the errno corresponding to the most
relevant operation.