- ctx
void* ctx;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- read
long function(const(clap_istream_t)* stream, void* buffer, ulong size) read;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
@page Streams
Notes on using streams
When working with clap_istream and clap_ostream objects to load and save state, it is important to keep in mind that the host may limit the number of bytes that can be read or written at a time. The return values for the stream read and write functions indicate how many bytes were actually read or written. You need to use a loop to ensure that you read or write the entirety of your state. Don't forget to also consider the negative return values for the end of file and IO error codes.