#include <file_source.hpp>
◆ FileSource()
Roar::Curl::FileSource::FileSource |
( |
std::filesystem::path const & |
filename | ) |
|
|
explicit |
◆ fetch()
std::size_t Roar::Curl::FileSource::fetch |
( |
char * |
buffer, |
|
|
std::size_t |
amount |
|
) |
| |
|
overridevirtual |
This function gets called when the upload requests more data.
Implements Roar::Curl::Source.
◆ size()
std::size_t Roar::Curl::FileSource::size |
( |
| ) |
|
|
overridevirtual |
Returns the total size to upload. This function is unused if chunked encoding is used.
Implements Roar::Curl::Source.
◆ memoizedFileSize_
std::optional<std::size_t> Roar::Curl::FileSource::memoizedFileSize_ |
|
private |
◆ reader_
std::ifstream Roar::Curl::FileSource::reader_ |
|
private |
The documentation for this class was generated from the following files: