Apache OpenDALâ„¢ C++ Binding
The C++ binding for Apache OpenDALâ„¢
Public Member Functions | List of all members
opendal::Reader Class Reference

Reader is designed to read data from the operator. More...

#include <opendal.hpp>

Inheritance diagram for opendal::Reader:
[legend]

Public Member Functions

 Reader (rust::Box< opendal::ffi::Reader > &&reader)
 
std::streamsize read (void *s, std::streamsize n)
 
std::streampos seek (std::streamoff off, std::ios_base::seekdir way)
 

Detailed Description

Reader is designed to read data from the operator.

It provides basic read and seek operations. If you want to use it like a stream, you can use ReaderStream instead.

opendal::ReaderStream stream(operator.reader("path"));
ReaderStream is a stream wrapper of Reader which can provide iostream interface. It will keep a Reade...
Definition: opendal.hpp:228

Constructor & Destructor Documentation

◆ Reader()

opendal::Reader::Reader ( rust::Box< opendal::ffi::Reader > &&  reader)
inline

Member Function Documentation

◆ read()

std::streamsize opendal::Reader::read ( void *  s,
std::streamsize  n 
)

◆ seek()

std::streampos opendal::Reader::seek ( std::streamoff  off,
std::ios_base::seekdir  way 
)

The documentation for this class was generated from the following file: