GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::Writer Class Reference

#include <GREM/core/data/Writer.hpp>

Inheritance diagram for grem::Writer:

Public Member Functions

GREM_ALWAYS_INLINE Writer (void *context, size_t(*writeSomeImplementation)(void *context, Span< const byte > data, bool thenFlush)) noexcept
template<typename Container>
requires (sizeof(typename Container::value_type) == 1)
GREM_ALWAYS_INLINE Writer (Container &output) noexcept
 Writer (std::FILE *output)
 Writer (std::streambuf *output)
 Writer (std::ostream &output)
GREM_ALWAYS_INLINE size_t writeSome (Span< const byte > data, bool thenFlush=false)
GREM_ALWAYS_INLINE void write (Span< const byte > data, bool thenFlush=false)
GREM_ALWAYS_INLINE void flush ()

Constructor & Destructor Documentation

◆ Writer() [1/5]

GREM_ALWAYS_INLINE grem::Writer::Writer ( void * context,
size_t(* writeSomeImplementation )(void *context, Span< const byte > data, bool thenFlush) )
inlinenoexcept

◆ Writer() [2/5]

template<typename Container>
requires (sizeof(typename Container::value_type) == 1)
GREM_ALWAYS_INLINE grem::Writer::Writer ( Container & output)
inlinenoexcept

◆ Writer() [3/5]

grem::Writer::Writer ( std::FILE * output)

◆ Writer() [4/5]

grem::Writer::Writer ( std::streambuf * output)

◆ Writer() [5/5]

grem::Writer::Writer ( std::ostream & output)

Member Function Documentation

◆ writeSome()

GREM_ALWAYS_INLINE size_t grem::Writer::writeSome ( Span< const byte > data,
bool thenFlush = false )
inlinenodiscard

◆ write()

GREM_ALWAYS_INLINE void grem::Writer::write ( Span< const byte > data,
bool thenFlush = false )
inline

◆ flush()

GREM_ALWAYS_INLINE void grem::Writer::flush ( )
inline

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