The RTSharedMemory type exposes the following members.
Back to Top
Back to Top
Back to Top
Constructors
| Name | Description | |
|---|---|---|
| RTSharedMemory(Int32) |
Initializes a SharedMemory object of a specified size.
| |
| RTSharedMemory(Int32, String) |
Initializes a SharedMemory object of a specified size.
|
Methods
| Name | Description | |
|---|---|---|
| BeginRead |
Throws a NotSupportedException.
(Overrides | |
| BeginWrite |
Throws a NotSupportedException.
(Overrides | |
| Close |
Closes the current stream and releases any resources (such as sockets and
file handles) associated with the current stream.
(Overrides | |
Reads the bytes from the current stream and writes them to the destination stream. (Inherited from | ||
Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size. (Inherited from | ||
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from | ||
| Obsolete. Allocates a (Inherited from | ||
Releases all resources used by the (Inherited from | ||
| Dispose(Boolean) |
Releases all resources used by this Port.
(Overrides | |
| EndRead |
Throws a NotSupportedException.
(Overrides | |
| EndWrite |
Throws a NotSupportedException.
(Overrides | |
| (Inherited from | ||
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from | ||
| Flush |
Shared memory access is direct, so Flush does nothing.
(Overrides | |
Serves as a hash function for a particular type. (Inherited from | ||
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from | ||
Gets the (Inherited from | ||
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
Creates a shallow copy of the current (Inherited from | ||
Provides support for a Contract. (Inherited from | ||
| OpenExisting |
Initializes a new SharedMemory object from an existing named region.
| |
| Read |
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes.
(Overrides | |
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. (Inherited from | ||
| Seek |
Sets the position within the current stream.
(Overrides | |
| SetLength |
Throws a NotSupportedException.
(Overrides | |
Returns a string that represents the current object. (Inherited from | ||
| Write |
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Overrides | |
Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from |
Properties
| Name | Description | |
|---|---|---|
| Address |
Gets the base address of the shared memory region. If the shared memory
region does not exist for any reason, this returns IntPtr.Zero.
| |
| CanRead |
Always returns true for SharedMemory.
(Overrides | |
| CanSeek |
Always returns true for SharedMemory.
(Overrides | |
| CanTimeout |
Always returns false for SharedMemory.
(Overrides | |
| CanWrite |
Always returns true for SharedMemory.
(Overrides | |
| Length |
The length (size) of the shared memory region.
(Overrides | |
| Name |
The system-wide unique name of a named shared memory region.
| |
| Position |
Gets or sets the current position (offset from the base address) in the stream.
(Overrides | |
| ReadTimeout |
Throws a NotSupportedException.
(Overrides | |
| WriteTimeout |
Throws a NotSupportedException.
(Overrides |
See Also