请问,NDK中动态生成TXT文件时,文件内容是保存在原内存区,还是拷贝了一份;或者说当我把一段内存生成了TXT文件,然后内存内容变更了,然后访问txt文件,文件中的内容是变更前的还是变更后的
Allen35065:
参见ndk手册里efs_createfile的说明
This function creates an internal record of the RAM based file with the indicatedfilename, file length, and data pointer. The file data is not copied, so the buffer must bestatically allocated. The filename is copied, so it does not need to be static.