SmartMemoryManagement

SmartMemoryStream Methods

The methods of the SmartMemoryStream class are listed below. For a complete list of SmartMemoryStream class members, see the SmartMemoryStream Members topic.

Public Instance Methods

BeginRead (inherited from Stream)Begins an asynchronous read operation.
BeginWrite (inherited from Stream)Begins an asynchronous write operation.
CloseOveridden. Closes the Stream and recycles the internal buffer with the BufferProvider, if it exceed the MinimumRequiredSize
CreateObjRef (inherited from MarshalByRefObject)Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
Dispose Calls the Close method.
EndRead (inherited from Stream)Waits for the pending asynchronous read to complete.
EndWrite (inherited from Stream)Ends an asynchronous write operation.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
FlushOveridden. In this implementation, this method does nothing.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetLifetimeService (inherited from MarshalByRefObject)Retrieves the current lifetime service object that controls the lifetime policy for this instance.
GetType (inherited from Object)Gets the Type of the current instance.
InitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
ReadOveridden. Reads the number of bytes specified by count and writes them into the buffer at the specified offset. For more Information and examples see Read
ReadByte (inherited from Stream)Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream.
SeekOveridden. Sets the position within to the specified value.
SetLengthOveridden. Sets the length of the buffer to the specified value.
ToString (inherited from Object)Returns a String that represents the current Object.
WriteOveridden. Writes the content of the buffer into the buffer of the stream.
WriteByte (inherited from Stream)Writes a byte to the current position in the stream and advances the position within the stream by one byte.

Protected Instance Methods

CreateWaitHandle (inherited from Stream)Allocates a WaitHandle object.
EnsureSize The method ensures the the underlying _Buffer has at least the size specified by the size parameter.
Finalize (inherited from Object)Overidden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
SetCapacity Sets the capacity of the stream to the requested size.

See Also

SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace