stream.PassThrough 类


stream.PassThrough 类是一个无关紧要的转换流,只是单纯地把输入的字节原封不动地输出。 它主要用于示例或测试,但有时也会用于某些新颖的流的基本组成部分。

The stream.PassThrough class is a trivial implementation of a Transform stream that simply passes the input bytes across to the output. Its purpose is primarily for examples and testing, but there are some use cases where stream.PassThrough is useful as a building block for novel sorts of streams.