PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ state_deserialize()

UnionState * state_deserialize ( const bytea *  serialized)
static

Definition at line 219 of file lwgeom_union.c.

220 {
221  UnionState *state = state_create();
222  const uint8 *data = (const uint8*)VARDATA(serialized);
223  const uint8 *data_end = (const uint8*)serialized + VARSIZE(serialized);
224 
225  /* grid size */
226  memcpy(&state->gridSize, data, sizeof(state->gridSize));
227  data += sizeof(state->gridSize);
228 
229  /* items */
230  while (data < data_end)
231  {
232  const GSERIALIZED* gser = (const GSERIALIZED*)data;
233  state_append(state, gser);
234  data += VARSIZE(gser);
235  }
236 
237  return state;
238 }
static UnionState * state_create(void)
Definition: lwgeom_union.c:169
static void state_append(UnionState *state, const GSERIALIZED *gser)
Definition: lwgeom_union.c:179
data
Definition: ovdump.py:104
float8 gridSize
Definition: lwgeom_union.h:9

References ovdump::data, UnionState::gridSize, state_append(), and state_create().

Referenced by pgis_geometry_union_parallel_deserialfn().

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