Click or drag to resize

MemoryX Class

A class for representing a section of shared memory for data exchange.
Inheritance Hierarchy
SystemObject
  Demo3D.IO.ExternalMemoryX

Namespace:  Demo3D.IO.External
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 15.0.2.11458
Syntax
C#
public abstract class MemoryX : IDataReference, 
	IDataReferenceReader, IDataReferenceWriter

The MemoryX type exposes the following members.

Constructors
  NameDescription
Protected methodMemoryX
Initializes a new instance of the MemoryX class
Top
Properties
  NameDescription
Public propertyAddress
The memory exchange address.
Public propertyAllocator
The memory allocator that owns this memory (or null for in-core memory).
Public propertyLength
The memory exchange length.
Public propertyViewHandle
A handle to the view of the memory-mapped file (or null).
Top
Methods
  NameDescription
Public methodAllocMemory
Allocate a sub address range within this memory exchange.
Public methodFree
Free this memory exchange.
Protected methodFreeMemory
Free this memory exchange.
Public methodGetReferenceT
Returns a reference to data of type T at offset in the buffer.
Public methodReadArrayE
Read data out of shared memory into the specified buffer.
Public methodReadBytes(Int32, ArraySegmentByte)
Read data out of shared memory into the specified buffer.
Public methodReadBytes(Int32, Int32)
Reads the memory exchange from the specified offset and returns the data as a value.
Public methodReadString
Reads the memory exchange from the specified offset and returns the data as a value.
Public methodWriteArrayE
Write data into shared memory from the specified buffer.
Public methodWriteBytes
Write data into shared memory from the specified buffer.
Public methodWriteString
Write a value to the memory exchange at the specified offset.
Top
Events
  NameDescription
Public eventOnFree
Occurs when Free is called, just before the memory is freed.
Top
Extension Methods
  NameDescription
Public Extension MethodReadByte
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadDoubleLE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadInt16LE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadInt32LE
Reads the memory exchange from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadInt64LE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadSByte
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadSingleLE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadUInt16LE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadUInt32LE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodReadUInt64LE
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteAsByte
Writes a byte at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Byte). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsDoubleLE
Writes a 64bit double floating point number at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Double). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsInt16LE
Writes a 16bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsInt32LE
Writes a 32bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsInt64LE
Writes a 64bit signed integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Int64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsSByte
Writes a signed byte at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.SByte). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 1 byte.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsSingleLE
Writes a 32bit single floating point number at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.Single). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsUInt16LE
Writes a 16bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt16). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 2 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsUInt32LE
Writes a 32bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt32). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 4 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteAsUInt64LE
Writes a 64bit unsigned integer at the current position in the buffer. The object is first converted using BinaryConvert.ChangeType(val, TypeCode.UInt64). ChangeType(Object, Type, BinaryConvertConversionType) The current position is advanced by 8 bytes.
(Defined by OffsetDataWriterExtensions.)
Public Extension MethodWriteByte
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteDoubleLE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteInt16LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteInt32LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteInt64LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteSByte
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteSingleLE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteUInt16LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteUInt32LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Public Extension MethodWriteUInt64LE
Write a value at the specified offset.
(Defined by DataReferenceExtensions.)
Top
See Also