[abcip] AbCip — STRINGnn variant decoding #318
Reference in New Issue
Block a user
Delete Branch "auto/abcip/1.2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds nullable
int? StringLengthtoAbCipTagDefinitionandAbCipStructureMember, threaded through a newStringMaxCapacityfield onAbCipTagCreateParams, and forwarded to libplctag'sTag.StringMaxCapacityattribute inLibplctagTagRuntime's ctor.AbCipDriver.EnsureTagRuntimeAsyncgates onDataType == Stringso a stray length on a DINT tag won't reshape that buffer.InitializeAsynccopiesStringLengthfrom the structure member onto the synthesised member tag.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.AbCip— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.AbCip.Tests— 237 / 237 passed (4 new tests for cap=40, null back-compat, non-String type gate, UDT member fan-out)🤖 Auto-generated by the Mode-B execution loop. Closes #226.
Closes #226