This is an automated email from the ASF dual-hosted git repository.
silver pushed a commit to branch cpp-more-operation
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
The following commit(s) were added to refs/heads/cpp-more-operation by this
push:
new a3defef67 typo
a3defef67 is described below
commit a3defef6714eee67ca365bfd3dbb71fceb128b39
Author: silver-ymz <[email protected]>
AuthorDate: Sun Sep 3 23:52:57 2023 +0800
typo
Signed-off-by: silver-ymz <[email protected]>
---
bindings/cpp/include/opendal.hpp | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/bindings/cpp/include/opendal.hpp b/bindings/cpp/include/opendal.hpp
index 78e55f5bd..177a8520c 100644
--- a/bindings/cpp/include/opendal.hpp
+++ b/bindings/cpp/include/opendal.hpp
@@ -29,8 +29,6 @@
namespace opendal {
-constexpr int BUFFER_SIZE = 1024 * 1024;
-
/**
* @enum EntryMode
* @brief The mode of the entry
@@ -190,6 +188,10 @@ private:
using Reader = rust::Box<opendal::ffi::Reader>;
+/**
+ * @class ReaderStreamBuf
+ * @brief The stream buffer for ReaderStream
+ */
class ReaderStreamBuf : public std::streambuf {
public:
ReaderStreamBuf(Reader &&reader) : reader_(std::move(reader)) {}
@@ -204,6 +206,10 @@ private:
Reader reader_;
};
+/**
+ * @class ReaderStream
+ * @brief The stream for Reader
+ */
class ReaderStream : public std::istream {
public:
ReaderStream(Reader &&reader)