420 static const uint32_t box2d_idx = 0;
421 static const uint32_t geom_idx = 1;
425 if (PG_ARGISNULL(box2d_idx) && PG_ARGISNULL(geom_idx))
432 if (PG_ARGISNULL(box2d_idx))
438 PG_RETURN_POINTER(
result);
442 if (PG_ARGISNULL(geom_idx))
444 memcpy(
result, (
char *)PG_GETARG_DATUM(box2d_idx),
sizeof(
GBOX));
445 PG_RETURN_POINTER(
result);
453 memcpy(
result, (
char *)PG_GETARG_DATUM(box2d_idx),
sizeof(
GBOX));
454 PG_RETURN_POINTER(
result);
457 a = (
GBOX *)PG_GETARG_DATUM(box2d_idx);
465 PG_RETURN_POINTER(
result);
char result[OUT_DOUBLE_BUFFER_SIZE]
int gserialized_datum_get_gbox_p(Datum gsdatum, GBOX *gbox)
Given a GSERIALIZED datum, as quickly as possible (peaking into the top of the memory) return the gbo...