Function ecs_term_copy

Synopsis

#include <include/flecs.h>

FLECS_API ecs_term_t ecs_term_copy(const ecs_term_t *src)

Description

Copy resources of a term to another term. This operation copies one term to another term. If the source term contains allocated resources (such as identifiers), they will be duplicated so that no memory is shared between the terms.

Parameters

dst - The term to copy to.

src - The term to copy from.

Source

Line 2409 in include/flecs.h.