Click or drag to resize

AlignmentAdd(Int32, Int32) Method

Returns the offset of a new field of a specified size.

Namespace: Demo3D.PLC.Comms
Assembly: PLC (in PLC.dll) Version: 19.00.00
Syntax
C#
public 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

Int32
The offset of the added field (or -1 if it can't be determined).
See Also