PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ state_append()

void state_append ( UnionState state,
const GSERIALIZED gser 
)
static

Definition at line 179 of file lwgeom_union.c.

180 {
181  GSERIALIZED *gser_copy;
182 
183  assert(gser);
184  gser_copy = lwalloc(VARSIZE(gser));
185  memcpy(gser_copy, gser, VARSIZE(gser));
186 
187  state->list = lappend(state->list, gser_copy);
188  state->size += VARSIZE(gser);
189 }
void * lwalloc(size_t size)
Definition: lwutil.c:227
List * list
Definition: lwgeom_union.h:10
int32 size
Definition: lwgeom_union.h:11

References UnionState::list, lwalloc(), and UnionState::size.

Referenced by pgis_geometry_union_parallel_transfn(), and state_deserialize().

Here is the call graph for this function:
Here is the caller graph for this function: