美文网首页
graphics任意位置dump buff方法

graphics任意位置dump buff方法

作者: Ed_Lannister | 来源:发表于2019-06-12 10:26 被阅读0次

如下

        //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

相关文章

网友评论

      本文标题:graphics任意位置dump buff方法

      本文链接:https://www.haomeiwen.com/subject/fgdkfctx.html