![]() |
libfilezilla
|
File writer. More...
#include <writer.hpp>
Additional Inherited Members | |
![]() | |
using | progress_cb_t = std::function<void(writer_base const*, uint64_t written)> |
![]() | |
using | size_type = uint64_t |
![]() | |
static constexpr auto | nosize = static_cast<size_type>(-1) |
![]() | |
virtual aio_result | do_add_buffer (scoped_lock &l, buffer_lease &&b) override |
virtual aio_result | do_finalize (scoped_lock &l) override |
void | wakeup (scoped_lock &l) |
![]() | |
writer_base (std::wstring &&name, aio_buffer_pool &pool, progress_cb_t &&progress_cb, size_t max_buffers) noexcept | |
writer_base (std::wstring_view name, aio_buffer_pool &pool, progress_cb_t &&progress_cb, size_t max_buffers) noexcept | |
![]() | |
void | remove_waiters () |
Call in destructor of most-derived class. | |
void | add_waiter (aio_waiter &h) |
void | add_waiter (event_handler &h) |
void | signal_availibility () |
![]() | |
condition | cond_ |
async_task | task_ |
bool | quit_ {} |
![]() | |
mutex | mtx_ |
aio_buffer_pool & | buffer_pool_ |
std::wstring const | name_ |
progress_cb_t | progress_cb_ |
size_t const | max_buffers_ {} |
std::list< buffer_lease > | buffers_ |
bool | error_ {} |
uint8_t | finalizing_ {} |
File writer.
|
overridevirtual |
Instructs writer to preallocate storage. May be a noop.
Reimplemented from writer_base.
Must be finalized already.
Reimplemented from writer_base.