|
iceberg-cpp
|
Seekable byte stream for reading file contents. More...
#include <file_io.h>
Public Member Functions | |
| virtual Result< int64_t > | Position () const =0 |
| Return the current read position. | |
| virtual Status | Seek (int64_t position)=0 |
| Seek to an absolute byte position. | |
| virtual Result< int64_t > | Read (std::span< std::byte > out)=0 |
| Read up to out.size() bytes from the current position. | |
| virtual Status | ReadFully (int64_t position, std::span< std::byte > out)=0 |
| Read exactly out.size() bytes from an absolute position. | |
| virtual Status | Close ()=0 |
| Close the stream. Implementations should allow repeated Close calls. | |
Seekable byte stream for reading file contents.
|
pure virtual |
Close the stream. Implementations should allow repeated Close calls.
Implemented in iceberg::test::StdSeekableInputStream.
|
pure virtual |
Return the current read position.
Implemented in iceberg::test::StdSeekableInputStream.
|
pure virtual |
Read up to out.size() bytes from the current position.
Implemented in iceberg::test::StdSeekableInputStream.
|
pure virtual |
Read exactly out.size() bytes from an absolute position.
Fails if fewer than out.size() bytes are available. The current stream position after this call is unspecified; callers should Seek before subsequent position-dependent reads.
Implemented in iceberg::test::StdSeekableInputStream.
|
pure virtual |
Seek to an absolute byte position.
Implemented in iceberg::test::StdSeekableInputStream.