PostGIS  2.5.7dev-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 70 of file g_serialized.c.

71 {
72  /* read GSERIALIZED size + max bbox according gbox_serialized_size (2 + Z + M) + 1 int for type */
73  return sizeof(GSERIALIZED) + 8 * sizeof(float) + sizeof(int);
74 }

Referenced by geometry_geometrytype(), and LWGEOM_getTYPE().

Here is the caller graph for this function: