Multiple file in one Stream, custom stream(一个流中的多个文件,自定义流)
问题描述
根据答案此处 我想将多个文件流写入一个流,如下所示:
According to the answer here I want to write multiple files stream to one stream as following:
为每个流的长度编号保留 4 个字节每个流内容写在它的长度数之后(4字节之后)最后的流将是这样的
4 byte reserved for length number of each stream each stream content write after it's length number(after 4 byte) at the end stream will be something like this
Stream = File1 len + File1 流内容 + File2 len + File2 流内容 + ....
示例代码:
这是个好主意吗?真的不知道注释怎么会变成代码行.
is it good idea? really don't know how that comments can be lines of code.
提前致谢.
推荐答案
试试这个
这篇关于一个流中的多个文件,自定义流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!