Contents

init(element:fromIntegerTruncatingIfNeeded:timestamp:)

Creates an HID element value from an integer.

Declaration

init<IntegerType>(element: HIDElement, fromIntegerTruncatingIfNeeded: IntegerType, timestamp: SuspendingClock.Instant) where IntegerType : FixedWidthInteger

Parameters

  • element:

    The element associated with this value.

  • fromIntegerTruncatingIfNeeded:

    An integer to use for the value’s Bytes, truncating or extending the bytes as necessary.

  • timestamp:

    The time that the value was created.

Discussion

The logical and physical values are calculated, but don’t need to be valid.

See Also

Create a HID element from a value