如下
//dump buf
LOGV("Edward lannister begin to dump inputbuffer");
FILE *fp=NULL;
if((fp = fopen("/data/data/com.example.nativecodec/hirestmp1.txt", "wb"))==NULL){
LOGV("zhou Edward lannister can not open the txt data/data/temp1 file,open fail errno = %d reason = %s \n",errno, strerror(errno));
}else {
LOGV("zhou Edward lannister begin to write buffer");
fwrite(buf, sizeof(uint8_t),1,fp);
}
LOGV("Edward lannister begin to close fp");
fclose(fp);
//dump buf