[postgis-tickets] r17490 - Move gserialized_header_size() out of the public API
Paul Ramsey
pramsey at cleverelephant.ca
Tue Jun 11 08:06:12 PDT 2019
Author: pramsey
Date: 2019-06-11 08:06:12 -0700 (Tue, 11 Jun 2019)
New Revision: 17490
Modified:
trunk/liblwgeom/g_serialized.c
trunk/liblwgeom/liblwgeom.h.in
Log:
Move gserialized_header_size() out of the public API
Modified: trunk/liblwgeom/g_serialized.c
===================================================================
--- trunk/liblwgeom/g_serialized.c 2019-06-11 10:20:39 UTC (rev 17489)
+++ trunk/liblwgeom/g_serialized.c 2019-06-11 15:06:12 UTC (rev 17490)
@@ -73,7 +73,7 @@
return sizeof(GSERIALIZED) + 8 * sizeof(float) + sizeof(int);
}
-uint32_t gserialized_header_size(const GSERIALIZED *gser)
+static uint32_t gserialized_header_size(const GSERIALIZED *gser)
{
uint32_t sz = 8; /* varsize (4) + srid(3) + flags (1) */
Modified: trunk/liblwgeom/liblwgeom.h.in
===================================================================
--- trunk/liblwgeom/liblwgeom.h.in 2019-06-11 10:20:39 UTC (rev 17489)
+++ trunk/liblwgeom/liblwgeom.h.in 2019-06-11 15:06:12 UTC (rev 17490)
@@ -683,12 +683,6 @@
extern uint32_t gserialized_max_header_size(void);
/**
-* Returns the size in bytes of the header, from the start of the
-* object up to the type number.
-*/
-extern uint32_t gserialized_header_size(const GSERIALIZED *gser);
-
-/**
* Returns a hash code for the srid/type/geometry information
* in the GSERIALIZED. Ignores metadata like flags and optional
* boxes, etc.
More information about the postgis-tickets
mailing list