PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ gserialized2_from_lwpoint_size()

static size_t gserialized2_from_lwpoint_size ( const LWPOINT point)
static

Definition at line 641 of file gserialized2.c.

642 {
643  size_t size = 4; /* Type number. */
644 
645  assert(point);
646 
647  size += 4; /* Number of points (one or zero (empty)). */
648  size += point->point->npoints * FLAGS_NDIMS(point->flags) * sizeof(double);
649 
650  LWDEBUGF(3, "point size = %d", size);
651 
652  return size;
653 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:179
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
POINTARRAY * point
Definition: liblwgeom.h:471
lwflags_t flags
Definition: liblwgeom.h:473
uint32_t npoints
Definition: liblwgeom.h:427

References LWPOINT::flags, FLAGS_NDIMS, LWDEBUGF, POINTARRAY::npoints, and LWPOINT::point.

Referenced by gserialized2_from_any_size().

Here is the caller graph for this function: