Virtual Method

OmniTransformerStatecopy_from_async

Declaration

void
copy_from_async (
  OmniTransformerState* self,
  OmniTransformerState* source_state,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  void* user_data
)

Description

Copy the internal state from another instance of OmniTransformerState.

source_state specifies the object to copy state data from. After a successful call to this method, source_state remains usable and unchanged.

source_state must point to a different object created by a logically equal (omni_transformer_eq()) instance of OmniTransformer.

Even though this method is defined as fallible, it is only allowed to throw G_IO_ERROR_CANCELLED at the moment. (This does not need to be observed if preconditions are violated.)

This method is never called when OMNI_TRANSFORMER_FEATURE_FLAGS_STATELESS is set. Otherwise, override it when moving state is more efficient than copying. The default implementation copies the state through omni_transformer_state_copy_from_async(). .

Parameters

source_state

Type: OmniTransformerState

No description available.

The data is owned by the caller of the method.
cancellable

Type: GCancellable

No description available.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

No description available.

user_data

Type: void*

No description available.

The argument can be NULL.
The data is owned by the caller of the method.