PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized2_from_lwcircstring_size()

static size_t gserialized2_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 707 of file gserialized2.c.

708{
709 size_t size = 4; /* Type number. */
710
711 assert(curve);
712
713 size += 4; /* Number of points (zero => empty). */
714 size += sizeof(double) * curve->points->npoints * FLAGS_NDIMS(curve->flags);
715
716 LWDEBUGF(3, "circstring size = %zu", size);
717
718 return size;
719}
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:179
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
lwflags_t flags
Definition liblwgeom.h:509
POINTARRAY * points
Definition liblwgeom.h:507
uint32_t npoints
Definition liblwgeom.h:427

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

Referenced by gserialized2_from_any_size().

Here is the caller graph for this function: