Stream

Amos Xia, 2018-04-30 13:28:12

C#中的Stream处理机制

System.IO namespace contains types related to stream read/write.

Stream

The abstract base class Stream supports reading and writing byte[].

Stream is the abstract base class of all streams. A stream is an abstraction of a sequence of bytes, such as - file - input/output device - inter-process communication pipe - TCP/IP socket.

The Stream class and its derived classes provide a generic view of these different types of input and output, and isolate the programmer from the specific details of the operating system and the underlying devices.

Readers and Writers

The reader and writer types handle the conversion of the encoded characters to and from bytes so the stream can complete the operation. Each reader and writer class is associated with a stream by BaseStream property.



知识共享许可协议
本作品采用知识共享署名 4.0 国际许可协议进行许可。


Copyright© 2018 s2u2m