RTSharedMemory Members IntervalZero RTX Managed Code

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.
Back to Top
Methods

NameDescription
Public methodBeginRead
Throws a NotSupportedException.
(Overrides OnlineStream BeginRead( Byte , Int32, Int32, AsyncCallback, Object).)
Public methodBeginWrite
Throws a NotSupportedException.
(Overrides OnlineStream BeginWrite( 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 OnlineStream Close .)
Public methodOnlineCopyTo(Stream)
Reads the bytes from the current stream and writes them to the destination stream.
(Inherited from OnlineStream.)
Public methodOnlineCopyTo(Stream, Int32)
Reads all the bytes from the current stream and writes them to a destination stream, using a specified buffer size.
(Inherited from OnlineStream.)
Public methodOnlineCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineCreateWaitHandleObsolete.
Allocates a OnlineWaitHandle object.
(Inherited from OnlineStream.)
Public methodOnlineDispose
Releases all resources used by the OnlineStream.
(Inherited from OnlineStream.)
Protected methodDispose(Boolean)
Releases all resources used by this Port.
(Overrides OnlineStream Dispose(Boolean).)
Public methodEndRead
Throws a NotSupportedException.
(Overrides OnlineStream EndRead(IAsyncResult).)
Public methodEndWrite
Throws a NotSupportedException.
(Overrides OnlineStream EndWrite(IAsyncResult).)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodFlush
Shared memory access is direct, so Flush does nothing.
(Overrides OnlineStream Flush .)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodOnlineInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone(Boolean)
Creates a shallow copy of the current OnlineMarshalByRefObject object.
(Inherited from OnlineMarshalByRefObject.)
Protected methodOnlineObjectInvariant
Provides support for a Contract.
(Inherited from OnlineStream.)
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 OnlineStream Read( Byte , Int32, Int32).)
Public methodOnlineReadByte
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 OnlineStream.)
Public methodSeek
Sets the position within the current stream.
(Overrides OnlineStream Seek(Int64, SeekOrigin).)
Public methodSetLength
Throws a NotSupportedException.
(Overrides OnlineStream SetLength(Int64).)
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
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 OnlineStream Write( Byte , Int32, Int32).)
Public methodOnlineWriteByte
Writes a byte to the current position in the stream and advances the position within the stream by one byte.
(Inherited from OnlineStream.)
Back to 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 OnlineStream CanRead.)
Public propertyCanSeek
Always returns true for SharedMemory.
(Overrides OnlineStream CanSeek.)
Public propertyCanTimeout
Always returns false for SharedMemory.
(Overrides OnlineStream CanTimeout.)
Public propertyCanWrite
Always returns true for SharedMemory.
(Overrides OnlineStream CanWrite.)
Public propertyLength
The length (size) of the shared memory region.
(Overrides OnlineStream Length.)
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 OnlineStream Position.)
Public propertyReadTimeout
Throws a NotSupportedException.
(Overrides OnlineStream ReadTimeout.)
Public propertyWriteTimeout
Throws a NotSupportedException.
(Overrides OnlineStream WriteTimeout.)
Back to Top
See Also