Skip to content

Commit

Permalink
Merge pull request #14447 from rapidsai/branch-23.12
Browse files Browse the repository at this point in the history
Forward-merge branch-23.12 to branch-24.02
  • Loading branch information
GPUtester authored Nov 17, 2023
2 parents eb964fb + 6c2e972 commit 8917870
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/src/io/utilities/datasource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,11 @@ class user_datasource_wrapper : public datasource {
return source->supports_device_read();
}

[[nodiscard]] bool is_device_read_preferred(size_t size) const override
{
return source->is_device_read_preferred(size);
}

size_t device_read(size_t offset,
size_t size,
uint8_t* dst,
Expand All @@ -385,6 +390,8 @@ class user_datasource_wrapper : public datasource {

[[nodiscard]] size_t size() const override { return source->size(); }

[[nodiscard]] bool is_empty() const override { return source->is_empty(); }

private:
datasource* const source; ///< A non-owning pointer to the user-implemented datasource
};
Expand Down

0 comments on commit 8917870

Please sign in to comment.