Module stream

Source
Expand description

CLAP I/O streams for storing and loading plugin state.

§Notes on using streams

When working with IStream and 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.

Structs§

IStream
OStream