Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
Signed-off-by: silver-ymz <[email protected]>
  • Loading branch information
silver-ymz committed Sep 3, 2023
1 parent eddee44 commit a3defef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bindings/cpp/include/opendal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

namespace opendal {

constexpr int BUFFER_SIZE = 1024 * 1024;

/**
* @enum EntryMode
* @brief The mode of the entry
Expand Down Expand Up @@ -190,6 +188,10 @@ class Operator {

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)) {}
Expand All @@ -204,6 +206,10 @@ class ReaderStreamBuf : public std::streambuf {
Reader reader_;
};

/**
* @class ReaderStream
* @brief The stream for Reader
*/
class ReaderStream : public std::istream {
public:
ReaderStream(Reader &&reader)
Expand Down

0 comments on commit a3defef

Please sign in to comment.