FlagIndex

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

Annotation added for serializing using BluetoothFormat

When applied, the position of the header flag(s) to be used for storing headers will be set to index. If applied to a Boolean, the boolean will be stored as a flag at index instead of within the body itself.

If the index was already claimed by another property a FlagIndexException may be thrown.

Properties

Link copied to clipboard
val index: Int

the position of the header flag(s) to be used for storing headers