NullTerminated

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class NullTerminated

Annotation added for serializing using BluetoothFormat

When applied to a String or Collection, they will be marked with 0x00 to indicate completion. Will throw an exception if:

  • Encoding a String and it contains \u0000

  • Encoding a List and an encoded item starts with 0x00

  • Encoding a Map and an encoded key starts with 0x00