RtSharedMemory Class
An 8-bit implementation of the abstract Port class.
Inheritance Hierarchy
System.Object
System.MarshalByRefObject
System.IO.Stream
IntervalZero.MaxRT.wRTOS.RtApi.IO.RtSharedMemory
Namespace:
IntervalZero.MaxRT.wRTOS.RtApi.IO
Assembly:
IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)
Syntax
public class RtSharedMemory : Stream
The RtSharedMemory class exposes the following members.
Constructors
|
|
Name | Description |
|---|---|---|
|
|
Initializes a SharedMemory object of a specified size. |
|
|
|
Initializes a SharedMemory object of a specified size. |
Properties
| Name | Description | |
|---|---|---|
|
|
Gets the base address of the shared memory region. If the shared memory region does not exist for any reason, this returns IntPtr.Zero. |
|
|
|
Always returns true for SharedMemory. (Overrides Stream.CanRead.) |
|
|
|
Always returns true for SharedMemory. (Overrides Stream.CanSeek.) |
|
|
|
Always returns false for SharedMemory. (Overrides Stream.CanTimeout.) |
|
|
|
Always returns true for SharedMemory. (Overrides Stream.CanWrite.) |
|
|
|
The length (size) of the shared memory region. (Overrides Stream.Length.) |
|
|
|
The system-wide unique name of a named shared memory region. |
|
|
|
Gets or sets the current position (offset from the base address) in the stream. (Overrides Stream.Position.) |
|
|
|
Throws a NotSupportedException. (Overrides Stream.ReadTimeout.) |
|
|
|
Throws a NotSupportedException. (Overrides Stream.WriteTimeout.) |
Methods
| Name | Description | |
|---|---|---|
|
|
BeginRead |
Throws a NotSupportedException.
(Overrides Stream.BeginRead (Byte, Int32, Int32, AsyncCallback, Object).) |
|
|
BeginWrite |
Throws a NotSupportedException.
(Overrides Stream.BeginWrite (Byte, Int32, Int32, AsyncCallback, Object).) |
|
|
Close |
Closes the current stream and releases any resources (such as sockets and
file handles) associated with the current stream.
(Overrides Stream.Close.) |
|
|
Dispose(Boolean) |
Releases all resources used by this Port.
(Overrides Stream.Dispose (Boolean).) |
|
|
EndRead |
Throws a NotSupportedException.
(Overrides Stream.EndRead (IAsyncResult).) |
|
|
EndWrite |
Throws a NotSupportedException.
(Overrides Stream.EndWrite (IAsyncResult).) |
|
|
Flush |
Shared memory access is direct, so Flush does nothing.
(Overrides Stream.Flush.) |
|
|
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 Stream.Read (Byte, Int32, Int32).) |
|
|
Seek |
Sets the position within the current stream.
(Overrides Stream.Seek (Int64, SeekOrigin).) |
|
|
SetLength |
Throws a NotSupportedException.
(Overrides Stream.SetLength (Int64).) |
|
|
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 Stream.Write (Byte, Int32, Int32).) |
See Also: