3 #include "private/std.h"
4 #include "private/macros.h"
10 typedef struct clap_istream
{
11 void *ctx
; // reserved pointer for the stream
13 // returns the number of bytes read; 0 indicates end of file and -1 a read error
14 int64_t (CLAP_ABI
*read
)(const struct clap_istream
*stream
, void *buffer
, uint64_t size
);
17 typedef struct clap_ostream
{
18 void *ctx
; // reserved pointer for the stream
20 // returns the number of bytes written; -1 on write error
21 int64_t (CLAP_ABI
*write
)(const struct clap_ostream
*stream
, const void *buffer
, uint64_t size
);