Base Framework
|
A region of a file. More...
#include <base/io/FileRegion.h>
Inherits Object.
Public Member Functions | |
FileRegion (long long offset, unsigned int size) | |
FileRegion (const FileRegion ©) noexcept | |
FileRegion & | operator= (const FileRegion &assign) noexcept |
long long | getOffset () const noexcept |
unsigned int | getSize () const noexcept |
void | setOffset (long long offset) |
void | setSize (unsigned int size) |
long long | getEnd () const noexcept |
bool | isWithin (const FileRegion ®ion) const noexcept |
A region of a file.
Description of a file region represented by an offset (64 bit) and a size (32 bit).
|
inline |
Initializes the file region.
offset | The offset (from the beginning of the file) of the region. |
size | The size (in bytes) of the region. |
|
inlinenoexcept |
Initializes region from other region.
|
inlinenoexcept |
Returns the end of the region.
|
inlinenoexcept |
Returns the offset of the file region.
|
inlinenoexcept |
Returns the size of the file region.
|
inlinenoexcept |
Returns true if the specified region is contained in this region.
|
inlinenoexcept |
Assignment of region by region.
|
inline |
Sets the offset of the file region.
|
inline |
Sets the size of the file region.