PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum LWGEOM_mem_size ( PG_FUNCTION_ARGS  )

Definition at line 104 of file lwgeom_functions_basic.c.

105 {
106  GSERIALIZED *geom = (GSERIALIZED *) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
107  size_t size = VARSIZE(geom);
108  PG_FREE_IF_COPY(geom,0);
109  PG_RETURN_INT32(size);
110 }
LWGEOM * geom