0
6
Login
Code
Issues
1
Pull requests
Events
Packages
7266fe377b724a32e82283089b2705e5bdf21c41
7266fe377b724a32e82283089b2705e5bdf21c41

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.