An open API service indexing awesome lists of open source software.

https://github.com/beached/daw_io

modern type erased io library
https://github.com/beached/daw_io

Last synced: 2 months ago
JSON representation

modern type erased io library

Awesome Lists containing this project

README

        

# daw_io
modern type erased io library

## output_stream
```c++
struct daw::io::output_stream {
virtual void write( std::span data ) = 0;
virtual void close( );
virtual void flush( );
[[nodiscard]] virtual bool can_write( ) const;

void write( std::span data, std::size_t offset, std::size_t length );

template
void print( fmt::format_string fmt, Ts &&...args );

template
void print( std::string_view fmt, Ts &&...args );
};
```