code: def register_cffi_externs(self):
      
      for field_name, _ in self._extern_fields.items():
        bound_method = getattr(self, field_name)
        self._ffi.def_extern()(bound_method)
docs: Registers the @_extern_decl methods with our ffi instance.