.NET Framework Class Library
MemoryStream Members

Creates a stream whose backing store is memory.

The MemoryStream type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemoryStreamOverloaded. Initializes a new instance of the MemoryStream class.
Top
Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBeginReadBegins an asynchronous read operation. (Inherited from Stream.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkBeginWriteBegins an asynchronous write operation. (Inherited from Stream.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCloseOverloaded.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCreateWaitHandle Obsolete. Allocates a WaitHandle object. (Inherited from Stream.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkDisposeOverloaded.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEndReadWaits for the pending asynchronous read to complete. (Inherited from Stream.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEndWriteEnds an asynchronous write operation. (Inherited from Stream.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFlushOverrides Stream..::.Flush so that no action is performed. (Overrides Stream..::.Flush()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetBufferReturns the array of unsigned bytes from which this stream was created.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneOverloaded.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadReads a block of bytes from the current stream and writes the data to buffer. (Overrides Stream..::.Read(array<Byte>[]()[], Int32, Int32).)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadByteReads a byte from the current stream. (Overrides Stream..::.ReadByte()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSeekSets the position within the current stream to the specified value. (Overrides Stream..::.Seek(Int64, SeekOrigin).)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSetLengthSets the length of the current stream to the specified value. (Overrides Stream..::.SetLength(Int64).)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToArrayWrites the stream contents to a byte array, regardless of the Position property.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringReturns a String that represents the current Object. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteWrites a block of bytes to the current stream using data read from buffer. (Overrides Stream..::.Write(array<Byte>[]()[], Int32, Int32).)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteByteWrites a byte to the current stream at the current position. (Overrides Stream..::.WriteByte(Byte).)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteToWrites the entire contents of this memory stream to another stream.
Top
Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCanReadGets a value indicating whether the current stream supports reading. (Overrides Stream..::.CanRead.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCanSeekGets a value indicating whether the current stream supports seeking. (Overrides Stream..::.CanSeek.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCanTimeoutGets a value that determines whether the current stream can time out. (Inherited from Stream.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCanWriteGets a value indicating whether the current stream supports writing. (Overrides Stream..::.CanWrite.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkCapacityGets or sets the number of bytes allocated for this stream.
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkLengthGets the length of the stream in bytes. (Overrides Stream..::.Length.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkPositionGets or sets the current position within the stream. (Overrides Stream..::.Position.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkReadTimeoutGets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from Stream.)
Public propertySupported by the .NET Compact FrameworkSupported by the XNA FrameworkWriteTimeoutGets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from Stream.)
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkIDisposable..::.DisposeFor a description of this member, see IDisposable..::.Dispose. (Inherited from Stream.)
Top
See Also

Reference

Tags :


Page view tracker