-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm working on implementing a log based file system for a file as a class project. I have a good amount of it working on my 64 bit OS X laptop, but when I try to run the code on the CS department's 32 bit linux machines, I get a seg fault.
The API we're given allows writing DISK_SECTOR_SIZE (512)…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I am working in mixed mode (managed C++ and C++ in one assembly). I am in a situation something like this.
ManagedStructure ^ managedStructure = gcnew ManagedStructure();
//here i set different properties of managedStructure
then I call "Method" given below and pass it "& managedStructure"
Method(void…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Under what circumstances should I expect memcpys to outperform assignments on modern INTEL/AMD hardware? I am using GCC 4.2.x on a 32 bit Intel platform (but am interested in 64 bit as well).
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using:
ReadProcessMemory(hProcess,(PVOID)(dwEngine_DLL+0x2E15C8+i),&memSnap[i],1,NULL); //Store the memory into a byte array
To store a section of memory into an array of byte, but I realized this was sloppy since I'm in the same address space, but I'm not sure how to do the same thing…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I want to copy an int array to another int array. They use the same define for length so they'll always be of the same length.
What are the pros/cons of the following two alternatives of the size parameter to memcpy()?
memcpy(dst, src, ARRAY_LENGTH*sizeof(int));
or
memcpy(dst, src, sizeof(dst);
Will…
>>> More