PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized2_max_header_size()

uint32_t gserialized2_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 176 of file gserialized2.c.

177 {
178  static const intptr_t size_of_gserialized_up_to_data = (intptr_t) & ((GSERIALIZED *)NULL)->data;
179  /* GSERIALIZED size + max bbox according gbox_serialized_size (XYZM*2) + extended flags + type */
180  return size_of_gserialized_up_to_data + 8 * sizeof(float) + sizeof(uint64_t) + sizeof(uint32_t);
181 }
data
Definition: ovdump.py:104

References ovdump::data.

Referenced by gserialized_max_header_size().

Here is the caller graph for this function: