Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::BufferedFileWriter Class Reference
Inheritance diagram for duckdb::BufferedFileWriter:
Collaboration diagram for duckdb::BufferedFileWriter:

Public Member Functions

DUCKDB_API BufferedFileWriter (FileSystem &fs, const string &path, FileOpenFlags open_flags=DEFAULT_OPEN_FLAGS)
 
DUCKDB_API void WriteData (const_data_ptr_t buffer, idx_t write_size) override
 
DUCKDB_API void Close ()
 Flush all changes to the file and then close the file.
 
DUCKDB_API void Sync ()
 Flush all changes and fsync the file to disk.
 
DUCKDB_API void Flush ()
 Flush the buffer to the file (without sync)
 
DUCKDB_API idx_t GetFileSize ()
 Returns the current size of the file.
 
DUCKDB_API void Truncate (idx_t size)
 Truncate the size to a previous size (given that size <= GetFileSize())
 
DUCKDB_API idx_t GetTotalWritten () const
 
- Public Member Functions inherited from duckdb::WriteStream
template<class T >
void Write (T element)
 

Public Attributes

FileSystemfs
 
string path
 
unsafe_unique_array< data_tdata
 
idx_t offset
 
idx_t total_written
 
unique_ptr< FileHandlehandle
 

Static Public Attributes

static constexpr FileOpenFlags DEFAULT_OPEN_FLAGS = FileFlags::FILE_FLAGS_WRITE | FileFlags::FILE_FLAGS_FILE_CREATE
 

Constructor & Destructor Documentation

◆ BufferedFileWriter()

DUCKDB_API duckdb::BufferedFileWriter::BufferedFileWriter ( FileSystem fs,
const string &  path,
FileOpenFlags  open_flags = DEFAULT_OPEN_FLAGS 
)

Serializes to a buffer allocated by the serializer, will expand when writing past the initial threshold

Member Function Documentation

◆ WriteData()

DUCKDB_API void duckdb::BufferedFileWriter::WriteData ( const_data_ptr_t  buffer,
idx_t  write_size 
)
overridevirtual

Implements duckdb::WriteStream.


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