.NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library
by Brad Abrams
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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access