Hi Sam Moffatt,
Thank you for your response. I would like to raise an example to introduce my way of implement readFileAtPath function.
Example:copy a mpeg4 video(file size=700MB) from Fuse filesystem mounted path to local folder
Step1. go to readFileAtPath function.
1.do chunk download data of mpeg4 video from sever.(use NSURL method)
2.store NSData into allocated memory
3.do memcpy:from allocated memory to buffer.
4.return size
Step2: go to releaseFileAtPath function after you have finished downloading
1.remove all NSData in allocated memory
Problem:
I found that my Fuse App already used about 700 MB space of memory, but I had removed all NSData in allocated memory.
Therefore, I think those used memory are system cache.
Samuel Moffatt於 2016年12月23日星期五 UTC+8上午2時49分13秒寫道: