graphics任意位置dump buff方法

2019-06-12  本文已影响0人  Ed_Lannister

如下

        //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
上一篇 下一篇

猜你喜欢

热点阅读