#include <cstdint>
#include <cstdlib>
Go to the source code of this file.
#define EDM_IOFD_INVALID -1 |
Invalid channel descriptor constant.
Definition at line 8 of file IOTypes.h.
Referenced by DCacheFile::abort(), File::abort(), IOChannel::close(), DCacheFile::close(), File::close(), File::duplicate(), File::File(), File::flush(), DCacheFile::open(), File::open(), DCacheFile::position(), File::position(), File::resize(), File::size(), and File::sysduplicate().
Type the system uses for channel descriptors.
Definition at line 22 of file IOTypes.h.
Type for file offsets for I/O operations, including file sizes. This type is always compatible with large files (64-bit offsets) whether the system supports them or not. This type is signed.
Definition at line 19 of file IOTypes.h.
Type for buffer sizes in I/O operations. It measures units in memory: buffer sizes, amounts to read and write, etc., and is unsigned. Never use IOSize to measure file offsets, as it is most likely smaller than the file offset type on your system!
Definition at line 14 of file IOTypes.h.
I/O operation mask.
Enumerator |
---|
IORead |
|
IOWrite |
|
IOUrgent |
|
IOAccept |
|
IOConnect |
|
Definition at line 25 of file IOTypes.h.
Safely convert IOOffset n into a IOSize quantity. If n is larger than what IOSize can hold, it is truncated to maximum value that can be held in IOSize.
Definition at line 37 of file IOTypes.h.
43 return IOSize (
n > largest ? largest :
n);