RChunk read write
| Sun, 2007-10-21 22:42 | |
|
Hi All, I am using RChunk i.e. shared memory. I have to store a pointer address into this shared memory. Now I want to store a pointer address into RChunk. Can somebody tell me in detail how can i read and write pointer from RChunk. and i want to use a pointer into Shared memory i.e. RChunk. How can I read and write this pointer to RChunk. |
|






Forum posts: 1246
No different from using pointers pointing anywhere else.
Forum posts: 1246
Though, possibly easier, you can also create a new heap connected to the chunk, by creating the chunk (and heap) through User::ChunkHeap();
Then you can switch to the heap with User::SwitchHeap() and the normal new and delete will work on your new chunks heap, until you switch back.