21 #include <bsoncxx/document/value.hpp>
22 #include <bsoncxx/document/view.hpp>
23 #include <bsoncxx/stdx/optional.hpp>
24 #include <bsoncxx/types/bson_value/view.hpp>
25 #include <mongocxx/cursor.hpp>
26 #include <mongocxx/stdx.hpp>
28 #include <mongocxx/config/prelude.hpp>
31 inline namespace v_noabi {
38 std::int32_t chunks_offset = 0;
39 std::int32_t bytes_offset = 0;
77 explicit operator
bool() const noexcept;
99 std::
size_t read(std::uint8_t* buffer, std::
size_t length);
114 std::int32_t chunk_size() const;
122 std::int64_t file_length() const;
130 bsoncxx::document::view files_document() const;
156 std::int32_t chunk_size,
157 std::int64_t file_len,
158 bsoncxx::document::value files_doc);
160 MONGOCXX_PRIVATE
void fetch_chunk();
162 class MONGOCXX_PRIVATE impl;
164 MONGOCXX_PRIVATE impl& _get_impl();
165 MONGOCXX_PRIVATE const impl& _get_impl() const;
167 std::unique_ptr<impl> _impl;
175 #if defined(MONGOCXX_TEST_MACRO_GUARDS_FIX_MISSING_POSTLUDE)
176 #include <mongocxx/config/postlude.hpp>
Class representing a pointer to the result set of a query on a MongoDB server.
Definition: cursor.hpp:36
Class representing a GridFS bucket.
Definition: bucket.hpp:62
Class used to download a GridFS file.
Definition: downloader.hpp:45
downloader() noexcept
Default constructs a downloader object.
The top-level namespace for bsoncxx library entities.
Definition: element.hpp:24
The top-level namespace for mongocxx library entities.
Definition: bulk_write.hpp:24
Class used to specify the offset from which to start reading the chunks of the file.
Definition: downloader.hpp:37