PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t empty_to_wkb_size ( const LWGEOM geom,
uint8_t  variant 
)
static

Definition at line 275 of file lwout_wkb.c.

References lwgeom_wkb_needs_srid(), WKB_BYTE_SIZE, and WKB_INT_SIZE.

Referenced by lwgeom_to_wkb_size().

276 {
277  size_t size = WKB_BYTE_SIZE + WKB_INT_SIZE + WKB_INT_SIZE;
278 
279  if ( lwgeom_wkb_needs_srid(geom, variant) )
280  size += WKB_INT_SIZE;
281 
282  return size;
283 }
static int lwgeom_wkb_needs_srid(const LWGEOM *geom, uint8_t variant)
Definition: lwout_wkb.c:47
#define WKB_INT_SIZE
#define WKB_BYTE_SIZE

Here is the call graph for this function:

Here is the caller graph for this function: