RTMappedMemory Class

This class encapsulates a region of mapped memory and exposes it as a Stream.
Inheritance Hierarchy
SystemObject
  SystemMarshalByRefObject
    System.IOStream
      IntervalZero.RTX64.RTAPI.IORTMappedMemory

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 RTMappedMemory : Stream, 
	IDisposable

The RTMappedMemory type exposes the following members.

Constructors
NameDescription
Public methodRTMappedMemory(UInt64, Int32, MemoryCachingType)
Creates an instance of a MappedMemory object.
Public methodRTMappedMemory(UInt64, UInt32, MemoryCachingType)
Creates an instance of a MappedMemory object.
Top
Properties
NameDescription
Public propertyCacheType
Gets the MemoryCachingType of the current MappedMemory instance.
Public propertyCanRead
Always returns true.
(Overrides StreamCanRead.)
Public propertyCanSeek
Always returns true.
(Overrides StreamCanSeek.)
Public propertyCanWrite
Always returns true.
(Overrides StreamCanWrite.)
Public propertyIsDisposed
Returns true if the instance has been disposed, otherwise false.
Public propertyLength
Gets the number of bytes mapped (via the constructor).
(Overrides StreamLength.)
Public propertyPosition
Gets or sets the current position (offset from the base address) in the stream.
(Overrides StreamPosition.)
Top
Methods
NameDescription
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 the unmanaged resources used by the System.IO.Stream and optionally releases the managed resources.
(Overrides StreamDispose(Boolean).)
Public methodFlush
Memory mapped access is direct, so Flush does nothing.
(Overrides StreamFlush.)
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
Not supported. 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