Size

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class Size(val length: Length)

Annotation added for serializing using BluetoothFormat

When applied to a numeric value this will set length as the length to be encoded. When applied to Double or Float, length must be either Length.32_BIT or Length.64_BIT. When combined with MedFloat, length must be either Length.16_BIT or Length.32_BIT.

When applied to a Collection, will determine the length of the size indicating bytes.

When this flag is repeated, the best fitting length will be picked and flags will be added to the header to indicate which value was picked

Properties

Link copied to clipboard