PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_from_lwcircstring_size()

static size_t gserialized_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 738 of file g_serialized.c.

739 {
740  size_t size = 4; /* Type number. */
741 
742  assert(curve);
743 
744  size += 4; /* Number of points (zero => empty). */
745  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
746 
747  LWDEBUGF(3, "circstring size = %d", size);
748 
749  return size;
750 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
uint8_t flags
Definition: liblwgeom.h:444
POINTARRAY * points
Definition: liblwgeom.h:447
uint32_t npoints
Definition: liblwgeom.h:374

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

Referenced by gserialized_from_any_size().

Here is the caller graph for this function: