Click or drag to resize

MemoryValue Class

Represents an attribute value in memory.
Inheritance Hierarchy

Namespace: Demo3D.PLC.Comms.AttrDb
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public class MemoryValue : AttributeValue

The MemoryValue type exposes the following members.

Constructors
 NameDescription
Public methodMemoryValue Constructs an attribute value.
Top
Properties
 NameDescription
Public propertyAddress Returns the address of the underlying shared memory segment.
Public propertyAttributeId Attribute ID.
(Inherited from AttributeProperties)
Public propertyDimensions The dimensions of the value (or null).
(Overrides AttributeValueDimensions)
Public propertyDynamic True if the value size is dynamic.
(Inherited from AttributeProperties)
Public propertyFixedSize True if the value size is fixed.
(Inherited from AttributeProperties)
Public propertyFlags Attribute value flags.
(Inherited from AttributeProperties)
Public propertyGetAttributesAll The attribute data is returned in a GetAttributesAll request.
(Inherited from AttributeProperties)
Public propertyGettable True if protocol attribute-get requests are allowed.
(Inherited from AttributeProperties)
Public propertyIgnoreSet True if protocol attribute-set requests are allowed, but should be ignored.
(Inherited from AttributeProperties)
Public propertyMaxDataSize The maximum size of the value (or 0 if not known).
Public propertyNotSupported The attribute is not supported.
(Inherited from AttributeProperties)
Public propertyNumBytes The number of bytes of attribute data (or -1).
(Inherited from AttributeValue)
Public propertySettable True if protocol attribute-set requests are allowed.
(Inherited from AttributeProperties)
Top
Methods
 NameDescription
Public methodAddOnAttributeValueRebuilt Add a handler for the OnAttributeValueRebuilt event.
Public methodAddOnAttributeValueSet Add a handler for the OnAttributeValueSet event.
(Inherited from AttributeValue)
Public methodNotifyAttributeValueSet Raises the OnAttributeValueSet event.
(Inherited from AttributeValue)
Public methodReadByte Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadByte)
Public methodReadBytes(ArraySegmentByte) Read data out of the attribute value into the specified buffer.
(Overrides AttributeValueReadBytes(ArraySegmentByte))
Public methodReadBytes(Int32) Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadBytes(Int32))
Public methodReadDoubleLE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadDoubleLE)
Public methodReadInt16LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadInt16LE)
Public methodReadInt32LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadInt32LE)
Public methodReadInt64LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadInt64LE)
Public methodReadSingleLE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadSingleLE)
Public methodReadString Reads the attribute value from the specified offset and returns the data as a value.
(Overrides AttributeValueReadString(BinaryTextEncoding))
Public methodReadUInt16LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadUInt16LE)
Public methodReadUInt32LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadUInt32LE)
Public methodReadUInt64LE Reads the attribute value and returns the data as a value.
(Overrides AttributeValueReadUInt64LE)
Public methodRemoveOnAttributeValueRebuilt Remove a handler from the OnAttributeValueRebuilt event.
Public methodRemoveOnAttributeValueSet Remove a handler from the OnAttributeValueSet event.
(Inherited from AttributeValue)
Public methodSetAllocator Initialize the value, by setting the memory allocator.
Public methodSetMemory Initialize or redirect memory allocated to this attribute value.
Public methodWriteByte Write a value to the attribute value.
(Overrides AttributeValueWriteByte(Byte))
Public methodWriteBytes Write data into the attribute value from the specified buffer.
(Overrides AttributeValueWriteBytes(ArraySegmentByte))
Public methodWriteDoubleLE Write a value to the attribute value.
(Overrides AttributeValueWriteDoubleLE(Double))
Public methodWriteInt16LE Write a value to the attribute value.
(Overrides AttributeValueWriteInt16LE(Int16))
Public methodWriteInt32LE Write a value to the attribute value.
(Overrides AttributeValueWriteInt32LE(Int32))
Public methodWriteInt64LE Write a value to the attribute value.
(Overrides AttributeValueWriteInt64LE(Int64))
Public methodWriteSingleLE Write a value to the attribute value.
(Overrides AttributeValueWriteSingleLE(Single))
Public methodWriteString Write a value to the attribute value.
(Overrides AttributeValueWriteString(BinaryString, BinaryTextEncoding))
Public methodWriteUInt16LE Write a value to the attribute value.
(Overrides AttributeValueWriteUInt16LE(UInt16))
Public methodWriteUInt32LE Write a value to the attribute value.
(Overrides AttributeValueWriteUInt32LE(UInt32))
Public methodWriteUInt64LE Write a value to the attribute value.
(Overrides AttributeValueWriteUInt64LE(UInt64))
Top
Events
 NameDescription
Public eventOnAttributeValueRebuilt Occurs when the attribute value is rebuilt.
Public eventOnAttributeValueSet Occurs when the attribute value is set, but only under certain circumstances (see remarks).
(Inherited from AttributeValue)
Top
See Also