putAttribute

fun putAttribute(key: String, value: String): String?

Puts a codec attribute value.

This is a key-value mapping for the field that the codec can use to store additional metadata, and will be available to the codec when reading the segment via .getAttribute

If a value already exists for the field, it will be replaced with the new value. This method make a copy on write for every attribute change.