An NDoc Documented Class Library

SmartMemoryStream Members

SmartMemoryStream overview

Public Static Properties

MinimumRequiredSize Gets or sets the minum size that a buffer must have to be recycled to the BufferManager class. Defaultvalue is LargeObjectTreshold.

Public Instance Constructors

SmartMemoryStream Overloaded. Initializes a new instance of the SmartMemoryStream class.

Public Instance Properties

CanRead Returns, whether reading is possible on this stream. Always true for this claas.
CanSeek Returns, whether seeking is possible on this stream. Always true for this claas.
CanWrite Returns, whether writing is possible on this stream. Always true for this claas.
Capacity Returns the capacity of the stream in bytes.
Length Returns the length of this stream in bytes. See Length
Position Gets or sets the actual position within the stream. See Position

Public Instance Methods

BeginRead (inherited from Stream)Begins an asynchronous read operation.
BeginWrite (inherited from Stream)Begins an asynchronous write operation.
Close 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.
Flush 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.
Read 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.
Seek Sets the position within to the specified value.
SetLength Sets the length of the buffer to the specified value.
ToString (inherited from Object)Returns a String that represents the current Object.
Write 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)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.

See Also

SmartMemoryStream Class | InfiniTec.SystemUtilities Namespace