예제 #1
0
 /// <inheritdoc />
 public DynamicBytesPlcItem(INumericPlcItem numericPlcItem, byte[] initialValue, byte lengthFactor, uint?lengthLimit, string identifier = default)
     : base
     (
         numericPlcItem,
         name =>
         new BytesPlcItem
         (
             dataBlock: numericPlcItem.DataBlock,
             position: (ushort)(numericPlcItem.Position + ((IPlcItem)numericPlcItem).Value.ByteLength),
             isFlexible: true,
             initialValue: initialValue,
             identifier: name
         ),
         lengthFactor,
         lengthLimit, identifier
     )
 {
 }
예제 #2
0
 /// <inheritdoc />
 public DynamicBytesPlcItem(INumericPlcItem numericPlcItem, byte[] initialValue, string identifier = default)
     : this(numericPlcItem, initialValue, 1, null, identifier)
 {
 }
예제 #3
0
 /// <inheritdoc />
 public DynamicBytesPlcItem(INumericPlcItem numericPlcItem, byte lengthFactor, uint?lengthLimit, string identifier = default)
     : this(numericPlcItem, new byte[0], lengthFactor, lengthLimit, identifier)
 {
 }
예제 #4
0
 /// <inheritdoc />
 public DynamicBytesPlcItem(INumericPlcItem numericPlcItem, string identifier = default)
     : this(numericPlcItem, new byte[0], 1, null, identifier)
 {
 }
 /// <inheritdoc />
 public DynamicUtf8PlcItem(INumericPlcItem numericPlcItem, string initialValue = default, string identifier = default)
     : this(numericPlcItem, 1, null, initialValue, identifier)
 {
 }
 /// <inheritdoc />
 public DynamicUtf8PlcItem(INumericPlcItem numericPlcItem, byte lengthFactor, uint?lengthLimit, string identifier = default)
     : this(numericPlcItem, lengthFactor, lengthLimit, String.Empty, identifier)
 {
 }
 /// <inheritdoc />
 public DynamicUtf8PlcItem(INumericPlcItem numericPlcItem, string identifier = default)
     : this(numericPlcItem, 1, null, String.Empty, identifier)
 {
 }