12#define CLOD_STREAM_OK 0
14#define CLOD_STREAM_EOF (-1)
16#define CLOD_STREAM_INVALID (-2)
18#define CLOD_STREAM_INTERRUPTED (-3)
116CLOD_API CLOD_NONNULL(1, 2, 3)
117int clod_stream_copy(
clod_stream *dst,
clod_stream *src,
void *buffer,
size_t buffer_size,
size_t *total_transferred);
128CLOD_API CLOD_NONNULL(1, 2)
139CLOD_API CLOD_NONNULL(1)
143CLOD_API CLOD_NONNULL(1)
int(* write)(clod_stream *self, struct clod_string *src)
int(* read)(clod_stream *self, struct clod_string *dst)
int(* close)(clod_stream *self)