View Source Kinda.Codec behaviour (kinda v0.11.0)

Normalizes values returned by raw NIF functions.

A codec owns only the BEAM boundary representation. It does not select or dispatch native functions. Generated wrappers call their concrete raw NIF entrypoint first and then pass the result to normalize/1.

Summary

Functions

Applies Kinda's default raw-result normalization.

Callbacks

normalize(term)

@callback normalize(term()) :: term() | no_return()

Functions

normalize(value)

@spec normalize(term()) :: term() | no_return()

Applies Kinda's default raw-result normalization.