eckit::codec::InputFileStream class

Base classes

class FileStream

Constructors, destructors, conversion operators

InputFileStream(const PathName&) explicit
operator bool() const explicit
Return true if pointer is valid;.

Public functions

auto datahandle() -> DataHandle&
Access internal DataHandle.
auto seek(std::uint64_t offset) -> std::uint64_t
Move position to given offset.
auto position() -> std::uint64_t
Return offset of current position.
auto write(const void* data, size_t length) -> std::uint64_t
auto read(void* data, size_t length) -> std::uint64_t

Function documentation

eckit::codec::InputFileStream::operator bool() const explicit

Return true if pointer is valid;.

DataHandle& eckit::codec::InputFileStream::datahandle()

Access internal DataHandle.

std::uint64_t eckit::codec::InputFileStream::seek(std::uint64_t offset)

Move position to given offset.

std::uint64_t eckit::codec::InputFileStream::position()

Return offset of current position.

std::uint64_t eckit::codec::InputFileStream::write(const void* data, size_t length)

Returns number of bytes written

Write data of given length (bytes)

std::uint64_t eckit::codec::InputFileStream::read(void* data, size_t length)

Returns number of bytes read

Read data of given length (bytes)