Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 36216

Re: max length of buffer to copy data from RAMDisk

$
0
0

Hi,

 

If you can provide an example project we can look into this further. The memcpy function uses an 32-bit parameter for the size, so should support up to 4GB of data.

 

If you perform the memcpy as smaller chunks - say 10K at a time, do you still hit the same boundary at around 36K where data stops being copied correctly? Have you also checked that the source data is correct - i.e. there are two possibilities:

1) the memcpy is incorrectly copying the correct data, such that it only partially copies the data

2) the source data is incorrect, and the memcpy is correctly copying incorrect data across the full 100K range.

 

Regards,

Craig.


Viewing all articles
Browse latest Browse all 36216

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>