alwaysUseByteString

Parameters

alwaysUseByteString

Specifies whether to always use the compact ByteString encoding when serializing or deserializing byte arrays. By default, Kotlin ByteArray instances are encoded as major type 4. When major type 2 is desired, then the @ByteString annotation can be used on a case-by-case basis. The alwaysUseByteString configuration switch allows for globally preferring major type 2 without needing to annotate every ByteArray in a class hierarchy.