Base implementations for decoder functionality.