I have a buffer that is allocated as follows using the Syslink API:
heap = (IHeap_Handle)SharedRegion_getHeap(2);
buf = Memory_alloc(heap, length, 128, NULL);
If I then try to use
memcpy(buf+1, soneDataArray, 4);
to copy some data into that memory, I get this:
Unhandled fault: alignment exception (0x801)
I don't get any errors if I access buf 4-byte aligned:
memcpy(buf, someDataArray, 4);
so my question is, how can I access my buf without having to write 4-byte aligned data? i.e. like a normal buffer created with "malloc".
Thanks,
Ralph