Export (0) Print
Expand All

MemoryStream Members

Creates a stream whose backing store is memory.

The following tables list the members exposed by the MemoryStream type.

  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework MemoryStream Overloaded. Initializes a new instance of the MemoryStream class.
Top

  Name Description
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanRead Overridden. Gets a value indicating whether the current stream supports reading.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanSeek Overridden. Gets a value indicating whether the current stream supports seeking.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanTimeout  Gets a value that determines whether the current stream can time out.(inherited from Stream)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework CanWrite Overridden. Gets a value indicating whether the current stream supports writing.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Capacity Gets or sets the number of bytes allocated for this stream.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Length Overridden. Gets the length of the stream in bytes.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Position Overridden. Gets or sets the current position within the stream.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ReadTimeout  Gets or sets a value, in miliseconds, that determines how long the stream will attempt to read before timing out. (inherited from Stream)
Public property Supported by the .NET Compact Framework Supported by the XNA Framework WriteTimeout  Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (inherited from Stream)
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework BeginRead  Begins an asynchronous read operation. (inherited from Stream)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework BeginWrite  Begins an asynchronous write operation. (inherited from Stream)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Close  Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream. (inherited from Stream)
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Dispose Overloaded.  
Public method Supported by the .NET Compact Framework Supported by the XNA Framework EndRead  Waits for the pending asynchronous read to complete. (inherited from Stream)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework EndWrite  Ends an asynchronous write operation. (inherited from Stream)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Flush Overridden. Overrides Stream.Flush so that no action is performed.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetBuffer Returns the array of unsigned bytes from which this stream was created.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (inherited from MarshalByRefObject)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Read Overridden. Reads a block of bytes from the current stream and writes the data to buffer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ReadByte Overridden. Reads a byte from the current stream.
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Seek Overridden. Sets the position within the current stream to the specified value.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework SetLength Overridden. Sets the length of the current stream to the specified value.
Public method Static Synchronized  Creates a thread-safe (synchronized) wrapper around the specified Stream object. (inherited from Stream)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToArray Writes the stream contents to a byte array, regardless of the Position property.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Write Overridden. Writes a block of bytes to the current stream using data read from buffer.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework WriteByte Overridden. Writes a byte to the current stream at the current position.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework WriteTo Writes the entire contents of this memory stream to another stream.
Top

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework CreateWaitHandle  Allocates a WaitHandle object. (inherited from Stream)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Dispose Overloaded. Overridden.  
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Overloaded. (inherited from MarshalByRefObject)
Top

Community Additions

ADD
Show:
© 2014 Microsoft