怎么将stdin里的二进制文件信息读入到char*
tar -c .[!.] | lz4 -1 | test
test.cpp
#define buf_size 1048576
char buf[buf_size] = { 0 };
fread(buf, sizeof(char), sizeof(buf), stdin);
用上面的方法读取有问题
tar -c .[!.] | lz4 -1 | 生成二进制文件信息,有什么方法可以从通道内获取到这部分信息