PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ LWGEOM_mem_size()

Datum LWGEOM_mem_size ( PG_FUNCTION_ARGS  )

Definition at line 124 of file lwgeom_functions_basic.c.

125 {
126  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
127  size_t size = VARSIZE(geom);
128  PG_FREE_IF_COPY(geom,0);
129  PG_RETURN_INT32(size);
130 }