LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_vtbl_t Struct Reference

Adapter dispatch table bound to a stream_t instance. More...

#include <stream_adapters_api.h>

Data Fields

stream_read_fn_t read
 
stream_write_fn_t write
 
stream_flush_fn_t flush
 
stream_close_fn_t close
 

Detailed Description

This table defines the concrete backend operations used by the generic stream port for read, write, flush, and close.

A valid vtable must provide all operations.

Definition at line 122 of file stream_adapters_api.h.

Field Documentation

◆ close

stream_close_fn_t stream_vtbl_t::close

Backend close operation. Must not be NULL.

Definition at line 133 of file stream_adapters_api.h.

◆ flush

stream_flush_fn_t stream_vtbl_t::flush

Backend flush operation. Must not be NULL.

Definition at line 130 of file stream_adapters_api.h.

◆ read

stream_read_fn_t stream_vtbl_t::read

Backend read operation. Must not be NULL.

Definition at line 124 of file stream_adapters_api.h.

◆ write

stream_write_fn_t stream_vtbl_t::write

Backend write operation. Must not be NULL.

Definition at line 127 of file stream_adapters_api.h.