I need to create a global memory chunck to contain files, video stream, audio stream. But I am not sure how to create a global memory chunk for this purpose.
Re: Need some suggestions for global memory chunk?
Either you use RChunk directly, and write your own routines to allocate space in it,
or you might call User::ChunkHeap(...) to create a heap connected to a global chunk, and you can use normal RHeap functions to allocate space on it.
You can even switch the current threads heap to use the global heap if you want, so any call to "new" and User::Alloc etc, allocate space on the global chunk instad.
Forum posts: 1246
Either you use RChunk directly, and write your own routines to allocate space in it,
or you might call User::ChunkHeap(...) to create a heap connected to a global chunk, and you can use normal RHeap functions to allocate space on it.
You can even switch the current threads heap to use the global heap if you want, so any call to "new" and User::Alloc etc, allocate space on the global chunk instad.