Searched defs:disk_buffer_holder (Results 1 – 7 of 7) sorted by relevance
57 struct TORRENT_EXTRA_EXPORT disk_buffer_holder struct86 char* data() const noexcept { return m_buf; } in data()87 char* get() const noexcept { return m_buf; } in get()96 void swap(disk_buffer_holder& h) noexcept in swap()105 bool is_mutable() const noexcept { return m_ref.cookie == aux::block_cache_reference::none; } in is_mutable()109 explicit operator bool() const noexcept { return m_buf != nullptr; } in operator bool()111 std::size_t size() const { return m_size; } in size()115 buffer_allocator_interface* m_allocator;116 char* m_buf;117 std::size_t m_size;[all …]
90 void write_piece(peer_request const&, disk_buffer_holder) override in write_piece() argument
37 disk_buffer_holder::disk_buffer_holder(buffer_allocator_interface& alloc in disk_buffer_holder() function in libtorrent::disk_buffer_holder49 disk_buffer_holder::disk_buffer_holder(disk_buffer_holder&& h) noexcept in disk_buffer_holder() function in libtorrent::disk_buffer_holder57 disk_buffer_holder::disk_buffer_holder(buffer_allocator_interface& alloc in disk_buffer_holder() function in libtorrent::disk_buffer_holder
72 … , std::function<void (lt::disk_buffer_holder, const lt::storage_error &)> handler in async_read()