Lab Checkpoint 1: stitching substrings into a byte stream
- ByteStream 的剩余容量会变化,可能当前放不进去的,之后可以放进去
- 需要维护的东西:_unassembled_num, _next_index, _eof_flag, end_input()
Principle:
- 尽可能往 ByteStream 中填;
- 放入 ByteStream 后,注意消除 buff 中对应的值;
- 超出的部分放入 buffer中;
- 合并 buffer 中的值;
已完成!
