Creating RED streams
REDsdk provides an abstraction of the I/O devices called RED::IStream. By creating streams, you can redirect I/O operations either to files on disk or memory buffers. To create a stream, you must use the RED::Factory:
case of a memory stream
RED::Object* mem_stream = RED::Factory::CreateMemoryStream();
case of a file stream
RED::Object* file_stream = RED::Factory::CreateFileStream( "./my_file.red" );
After the stream creation, you can get access to its RED::IStream interface to start using it.
![]() | Defining .red file policy![]() |