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