VRS
A file format for sensor data.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
vrs::DiskFileChunk Class Reference

Public Member Functions

 DiskFileChunk (string path, int64_t offset, int64_t size)
 
 DiskFileChunk (DiskFileChunk &&other) noexcept
 
int create (const string &newPath, MAYBE_UNUSED const map< string, string > &options)
 
int open (bool readOnly, MAYBE_UNUSED const map< string, string > &options)
 
bool isOpened () const
 
void rewind () const
 
int flush ()
 
int tell (int64_t &outFilepos) const
 
int seek (int64_t pos, int origin)
 
int read (void *ptr, size_t bufferSize, size_t &outReadSize) const
 
int write (const void *data, size_t dataSize, size_t &outWrittenSize) const
 
int truncate (int64_t newSize)
 
int close ()
 
bool eof () const
 
int64_t getOffset () const
 
void setOffset (int64_t newOffset)
 
int64_t getSize () const
 
void setSize (int64_t newSize)
 
const string & getPath () const
 
bool contains (int64_t fileOffset) const
 

The documentation for this class was generated from the following file: