class
#include <eckit/codec/FileStream.h>
OutputFileStream
Base classes
- class FileStream
Constructors, destructors, conversion operators
- OutputFileStream(const PathName&, Mode openmode = Mode::write) explicit
-
OutputFileStream(const PathName&,
const std::
string& openmode) - OutputFileStream(const PathName&, char openmode)
- operator bool() const explicit
- Return true if pointer is valid;.
Public functions
- void close()
- 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:: OutputFileStream:: operator bool() const explicit
#include <eckit/codec/Stream.h>
Return true if pointer is valid;.
DataHandle& eckit:: codec:: OutputFileStream:: datahandle()
#include <eckit/codec/Stream.h>
Access internal DataHandle.
std:: uint64_t eckit:: codec:: OutputFileStream:: seek(std:: uint64_t offset)
#include <eckit/codec/Stream.h>
Move position to given offset.
std:: uint64_t eckit:: codec:: OutputFileStream:: position()
#include <eckit/codec/Stream.h>
Return offset of current position.
std:: uint64_t eckit:: codec:: OutputFileStream:: write(const void* data,
size_t length)
#include <eckit/codec/Stream.h>
Returns | number of bytes written |
---|
Write data of given length (bytes)
std:: uint64_t eckit:: codec:: OutputFileStream:: read(void* data,
size_t length)
#include <eckit/codec/Stream.h>
Returns | number of bytes read |
---|
Read data of given length (bytes)