AlignmentAdd Method (Int32, Int32) |
Returns the offset of a new field of a specified size.
Namespace:
Demo3D.PLC.Comms
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic int Add(
int fieldOffsetBits,
int fieldSizeBits
)
Parameters
- fieldOffsetBits
- Type: SystemInt32
The offset of the field being added (or -1 to automatically align). - fieldSizeBits
- Type: SystemInt32
The size of the field being added (0 to align the next element to the largest boundary, or -1 if unknown).
Return Value
Type:
Int32The offset of the added field (or -1 if it can't be determined).
See Also