I'm reading a file's content into a buffer using
System::Alloc $Size
pop $Buffer
System::Call "Kernel32::ReadFile(i r0, i $Buffer, i $Size, t.,)"
But I can't figure out how to read from (or write into) $Buffer.
Is there a way do to so (preferably natively, but any suggestion would be appreciated).
Thanks
P.S.
I know about System::Copy but it only lets you write into a buffer and only from another buffer
(trying System::Copy 1 $Buffer "A" crashes the executable)