Skip to content

Commit

Permalink
Remove non common example
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 3, 2023
1 parent 6153261 commit 55bd8bd
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions cpp/src/arrow/ipc/reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -428,30 +428,7 @@ class ARROW_EXPORT StreamDecoder {
/// \brief Reset the internal status.
///
/// You can reuse this decoder for new stream after calling
/// this. For example, you can implement endless decoder with this:
///
/// ~~~{.cpp}
/// class EndlessListener : public arrow::ipc::Listener {
/// public:
/// explicit EndlessListener() : arrow::ipc::Listener(), decoder_() {}
///
/// arrow::Status OnEOS() override {
/// return decoder_->Reset();
/// }
///
/// void SetDecoder(arrow::ipc::StreamDecoder* decoder) {
/// decoder_ = decoder;
/// }
///
/// private:
/// arrow::ipc::StreamDecoder* decoder_;
/// };
///
/// auto listener = std::make_shared<EndlessListener>();
/// arrow::ipc::StreamDecoder decoder(listener);
/// listener->SetDecoder(&decoder);
/// decoder.Consume(...);
/// ~~~
/// this.
///
/// \return Status
Status Reset();
Expand Down

0 comments on commit 55bd8bd

Please sign in to comment.