iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::test::StdSeekableInputStream Class Reference
Inheritance diagram for iceberg::test::StdSeekableInputStream:
iceberg::SeekableInputStream

Public Member Functions

 StdSeekableInputStream (std::string location)
 
bool is_open () const
 
Result< int64_t > Position () const override
 Return the current read position.
 
Status Seek (int64_t position) override
 Seek to an absolute byte position.
 
Result< int64_t > Read (std::span< std::byte > out) override
 Read up to out.size() bytes from the current position.
 
Status ReadFully (int64_t position, std::span< std::byte > out) override
 Read exactly out.size() bytes from an absolute position.
 
Status Close () override
 Close the stream. Implementations should allow repeated Close calls.
 

Member Function Documentation

◆ Close()

Status iceberg::test::StdSeekableInputStream::Close ( )
inlineoverridevirtual

Close the stream. Implementations should allow repeated Close calls.

Implements iceberg::SeekableInputStream.

◆ Position()

Result< int64_t > iceberg::test::StdSeekableInputStream::Position ( ) const
inlineoverridevirtual

Return the current read position.

Implements iceberg::SeekableInputStream.

◆ Read()

Result< int64_t > iceberg::test::StdSeekableInputStream::Read ( std::span< std::byte >  out)
inlineoverridevirtual

Read up to out.size() bytes from the current position.

Implements iceberg::SeekableInputStream.

◆ ReadFully()

Status iceberg::test::StdSeekableInputStream::ReadFully ( int64_t  position,
std::span< std::byte >  out 
)
inlineoverridevirtual

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.

Implements iceberg::SeekableInputStream.

◆ Seek()

Status iceberg::test::StdSeekableInputStream::Seek ( int64_t  position)
inlineoverridevirtual

Seek to an absolute byte position.

Implements iceberg::SeekableInputStream.


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