![]() |
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.
|


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 | |
| FileSystem & | fs |
| string | path |
| unsafe_unique_array< data_t > | data |
| idx_t | offset |
| idx_t | total_written |
| unique_ptr< FileHandle > | handle |
Static Public Attributes | |
| static constexpr FileOpenFlags | DEFAULT_OPEN_FLAGS = FileFlags::FILE_FLAGS_WRITE | FileFlags::FILE_FLAGS_FILE_CREATE |
| 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
|
overridevirtual |
Implements duckdb::WriteStream.
| void duckdb::BufferedFileWriter::Close | ( | ) |
Flush all changes to the file and then close the file.

| void duckdb::BufferedFileWriter::Sync | ( | ) |
Flush all changes and fsync the file to disk.

| void duckdb::BufferedFileWriter::Flush | ( | ) |
Flush the buffer to the file (without sync).

| idx_t duckdb::BufferedFileWriter::GetFileSize | ( | ) |
Returns the current size of the file.
| void duckdb::BufferedFileWriter::Truncate | ( | idx_t | size | ) |
Truncate the size to a previous size (given that size <= GetFileSize()).
| idx_t duckdb::BufferedFileWriter::GetTotalWritten | ( | ) | const |