RTSharedMemory Class

Encapsulates functionality of RTX64 shared memory.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.IOStream
      IntervalZero.RTX64.RTAPI.IORTSharedMemory

Namespace:  IntervalZero.RTX64.RTAPI.IO
Assembly:  IntervalZero.RTX64 (in IntervalZero.RTX64.dll) Version: 3.3.0.0 (File version: 3.5.0)

Syntax
public class RTSharedMemory : Stream

The RTSharedMemory type exposes the following members.

Constructors
NameDescription
Public methodRTSharedMemory(Int32)
Initializes a SharedMemory object of a specified size.
Public methodRTSharedMemory(Int32, String)
Initializes a SharedMemory object of a specified size.
Top
Properties
NameDescription
Public propertyAddress
Gets the base address of the shared memory region. If the shared memory region does not exist for any reason, this returns IntPtr.Zero.
Public propertyCanRead
Always returns true for SharedMemory.
(Overrides StreamCanRead.)
Public propertyCanSeek
Always returns true for SharedMemory.
(Overrides StreamCanSeek.)
Public propertyCanTimeout
Always returns false for SharedMemory.
(Overrides StreamCanTimeout.)
Public propertyCanWrite
Always returns true for SharedMemory.
(Overrides StreamCanWrite.)
Public propertyLength
The length (size) of the shared memory region.
(Overrides StreamLength.)
Public propertyName
The system-wide unique name of a named shared memory region.
Public propertyPosition
Gets or sets the current position (offset from the base address) in the stream.
(Overrides StreamPosition.)
Public propertyReadTimeout
Throws a NotSupportedException.
(Overrides StreamReadTimeout.)
Public propertyWriteTimeout
Throws a NotSupportedException.
(Overrides StreamWriteTimeout.)
Top
Methods
NameDescription
Public methodBeginRead
Throws a NotSupportedException.
(Overrides StreamBeginRead(Byte, Int32, Int32, AsyncCallback, Object).)
Public methodBeginWrite
Throws a NotSupportedException.
(Overrides StreamBeginWrite(Byte, Int32, Int32, AsyncCallback, Object).)
Public methodClose
Closes the current stream and releases any resources (such as sockets and file handles) associated with the current stream.
(Overrides StreamClose.)
Protected methodDispose(Boolean)
Releases all resources used by this Port.
(Overrides StreamDispose(Boolean).)
Public methodEndRead
Throws a NotSupportedException.
(Overrides StreamEndRead(IAsyncResult).)
Public methodEndWrite
Throws a NotSupportedException.
(Overrides StreamEndWrite(IAsyncResult).)
Public methodFlush
Shared memory access is direct, so Flush does nothing.
(Overrides StreamFlush.)
Public methodStatic memberOpenExisting
Initializes a new SharedMemory object from an existing named region.
Public methodRead
Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes.
(Overrides StreamRead(Byte, Int32, Int32).)
Public methodSeek
Sets the position within the current stream.
(Overrides StreamSeek(Int64, SeekOrigin).)
Public methodSetLength
Throws a NotSupportedException.
(Overrides StreamSetLength(Int64).)
Public methodWrite
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
(Overrides StreamWrite(Byte, Int32, Int32).)
Top
See Also