PostGIS  2.3.7dev-r@@SVN_REVISION@@
static size_t gserialized_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 496 of file g_serialized.c.

References LWCIRCSTRING::flags, FLAGS_NDIMS, LWDEBUGF, POINTARRAY::npoints, and LWCIRCSTRING::points.

Referenced by gserialized_from_any_size().

497 {
498  size_t size = 4; /* Type number. */
499 
500  assert(curve);
501 
502  size += 4; /* Number of points (zero => empty). */
503  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
504 
505  LWDEBUGF(3, "circstring size = %d", size);
506 
507  return size;
508 }
uint8_t flags
Definition: liblwgeom.h:440
int npoints
Definition: liblwgeom.h:370
POINTARRAY * points
Definition: liblwgeom.h:443
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:151

Here is the caller graph for this function: