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

Public Member Functions

 AsyncDiskFileChunk (std::string path, int64_t offset, int64_t size)
 
 AsyncDiskFileChunk (AsyncDiskFileChunk &&other) noexcept
 
 AsyncDiskFileChunk (const AsyncDiskFileChunk &other) noexcept=delete
 
AsyncDiskFileChunkoperator= (const AsyncDiskFileChunk &other) noexcept=delete
 
AsyncDiskFileChunkoperator= (AsyncDiskFileChunk &&rhs) noexcept=delete
 
int create (const std::string &newpath, const std::map< std::string, std::string > &options)
 
int open (bool readOnly, const std::map< std::string, std::string > &options)
 
int close ()
 
int rewind ()
 
bool eof () const
 
bool isOpened ()
 
int write (const void *buffer, size_t count, size_t &outWrittenSize)
 
void setSize (int64_t newSize)
 
int flush ()
 
int truncate (int64_t newSize)
 
int read (void *buffer, size_t count, size_t &outReadSize)
 
int64_t getSize () const
 
bool contains (int64_t fileOffset) const
 
int tell (int64_t &outFilepos) const
 
int seek (int64_t pos, int origin)
 
const std::string & getPath () const
 
void setOffset (int64_t newOffset)
 
int64_t getOffset () const
 

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