Description

The System.IO.MemoryStream class creates streams that have memory as a backing store instead of a disk or a network connection. System.IO.MemoryStream encapsulates data stored as an unsigned byte array. The encapsulated data is directly accessible in memory. Memory streams can reduce the need for temporary buffers and files in an application.

The current position of a stream is the position at which the next read or write operation takes place. The current position can be retrieved or set through the System.IO.Memory-Stream.Seek method. When a new instance of System.IO.MemoryStream is created, the current position is set to zero.

[Note: Memory streams created with an unsigned byte array provide a non-resizable stream view of the data. ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.