How can I get fstream to write to a void pointer?
Basically I've used MapFileView and got a void pointer from it for shared memory.
I've use copymemory to copy a bunch of data back and forth between two separate applications.
Now instead, I want to use the std library to read in a struct via << overload and write it to my mapped memory (Local\MyMemMap, invalid_handle), then read it back via >> overload. It's not a physical file that you can see.
Basically I want to redirect ifstream and ofstream to my void* if possible. Otherwise, what other std streams would allow me to use my pointer and the operator overloads?
I only know of istream, osstream.