identity

inline fun <T : Any> identity(name: String): Codec<T, T>(source)

Builds a codec that forwards values without transforming them.

This exists so code that expects a named codec factory can keep the same call shape even when the source and target types are identical.

Parameters

T

value type handled by the codec.

name

unused placeholder kept for symmetry with other codec factories.