PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gserialized_max_header_size()

uint32_t gserialized_max_header_size ( void  )

Returns the size in bytes to read from toast to get the basic information from a geometry: GSERIALIZED struct, bbox and type.

Definition at line 49 of file g_serialized.c.

Referenced by geometry_geometrytype(), and LWGEOM_getTYPE().

50 {
51  /* read GSERIALIZED size + max bbox according gbox_serialized_size (2 + Z + M) + 1 int for type */
52  return sizeof(GSERIALIZED) + 8 * sizeof(float) + sizeof(int);
53 }
Here is the caller graph for this function: