Avrora.Codec.is_decodable

You're seeing just the callback is_decodable, go back to Avrora.Codec module for more information.

Specs

is_decodable(payload :: binary()) :: boolean()

Check either a given binary Avro message is decodable with a specific codec or not.

NOTE: It's not guaranteed that a decodable binary message will be successfuly decoded.

Examples

...> Avrora.Codec.Plain.is_decodable(<<1, 2, 3>>)
true
...> Avrora.Codec.SchemaRegistry.is_decodable(<<1, 2, 3>>)
false