MemoryX Class |
Namespace: Demo3D.IO.External
public abstract class MemoryX : IDataReference, IDataReferenceReader, IDataReferenceWriter
The MemoryX type exposes the following members.
| Name | Description | |
|---|---|---|
| Address |
The memory exchange address.
| |
| Allocator |
The memory allocator that owns this memory (or null for in-core memory).
| |
| Length |
The memory exchange length.
| |
| ViewHandle |
A handle to the view of the memory-mapped file (or null).
|
| Name | Description | |
|---|---|---|
| AllocMemory |
Allocate a sub address range within this memory exchange.
| |
| Free |
Free this memory exchange.
| |
| FreeMemory |
Free this memory exchange.
| |
| GetReferenceT |
Returns a reference to data of type T at offset in the buffer.
| |
| ReadArrayE |
Read data out of shared memory into the specified buffer.
| |
| ReadBytes(Int32, ArraySegmentByte) |
Read data out of shared memory into the specified buffer.
| |
| ReadBytes(Int32, Int32) |
Reads the memory exchange from the specified offset and returns the data as a value.
| |
| ReadString |
Reads the memory exchange from the specified offset and returns the data as a value.
| |
| WriteArrayE |
Write data into shared memory from the specified buffer.
| |
| WriteBytes |
Write data into shared memory from the specified buffer.
| |
| WriteString |
Write a value to the memory exchange at the specified offset.
|
| Name | Description | |
|---|---|---|
| ReadByte |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadDoubleLE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadInt16LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadInt32LE |
Reads the memory exchange from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadInt64LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadSByte |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadSingleLE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadUInt16LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadUInt32LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| ReadUInt64LE |
Reads from the specified offset and returns the data as a value.
(Defined by DataReferenceExtensions.) | |
| WriteAsByte |
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.) | |
| WriteAsDoubleLE |
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.) | |
| WriteAsInt16LE |
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.) | |
| WriteAsInt32LE |
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.) | |
| WriteAsInt64LE |
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.) | |
| WriteAsSByte |
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.) | |
| WriteAsSingleLE |
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.) | |
| WriteAsUInt16LE |
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.) | |
| WriteAsUInt32LE |
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.) | |
| WriteAsUInt64LE |
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.) | |
| WriteByte |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteDoubleLE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteInt16LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteInt32LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteInt64LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteSByte |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteSingleLE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteUInt16LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteUInt32LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) | |
| WriteUInt64LE |
Write a value at the specified offset.
(Defined by DataReferenceExtensions.) |