docs(abcip): fix stale ResolveDiscoveredUdtShapeAsync param doc + scalar-only typeCode note (review)

This commit is contained in:
Joseph Doherty
2026-06-18 11:37:08 -04:00
parent 3d8ce4e85f
commit d203f31cb7
2 changed files with 6 additions and 2 deletions
@@ -83,6 +83,8 @@ public static class CipTemplateObjectDecoder
var offset = (int)BinaryPrimitives.ReadUInt32LittleEndian(buffer.AsSpan(blockOffset + 4));
var isStruct = (info & MemberInfoStructFlag) != 0;
// Scalar path only — Rockwell primitive type codes (0xC1-0xD0) fit a byte. Do NOT use for a
// struct member: a nested template id can exceed a byte (see nestedTemplateId below).
var typeCode = (byte)(info & MemberInfoTypeCodeMask);
var dataType = isStruct
? AbCipDataType.Structure