PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ SIZE_GET

#define SIZE_GET (   varsize)    (((varsize) >> 2) & 0x3FFFFFFF)

Macro for reading the size from the GSERIALIZED size attribute.

Cribbed from PgSQL, top 30 bits are size. Use VARSIZE() when working internally with PgSQL.

Definition at line 121 of file liblwgeom_internal.h.

Referenced by gserialized_cmp(), and gserialized_copy().