PresentWhenAllSet

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class PresentWhenAllSet(val indices: Int)

Annotation added for serializing using BluetoothFormat

Marks a nullable property whose presence is derived from the flag bits at indices rather than from a dedicated flag bit of its own: it is present on the wire exactly when all of those bits are set, and reserves no flag bit itself. The listed bits are owned (and reserved) by the properties or flags they belong to. Use for a field gated by a compound condition such as "present if C1 and C2".

Properties

Link copied to clipboard

the flag bit positions that must all be set for this property to be present