PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 50 of file g_serialized.c.

Referenced by geometry_geometrytype(), and LWGEOM_getTYPE().

51 {
52  /* read GSERIALIZED size + max bbox according gbox_serialized_size (2 + Z + M) + 1 int for type */
53  return sizeof(GSERIALIZED) + 8 * sizeof(float) + sizeof(int);
54 }

Here is the caller graph for this function: