kencode

PackedType

@SerialInfo
@Target(allowedTargets = [AnnotationTarget.PROPERTY])
annotation class PackedType(val type: IntPacking)(source)

Overrides the integer encoding strategy for an Int or Long field in PackedFormat. Falls back to kotlinx.serialization.protobuf.ProtoType if present, then PackedConfiguration.defaultEncoding.

Properties

Link copied to clipboard

The integer encoding strategy to use for the annotated field.

type

The integer encoding strategy to use for the annotated field.