PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ ensure_items_len()

static void ensure_items_len ( struct flatgeobuf_agg_ctx ctx)
static

Definition at line 139 of file flatgeobuf.c.

140 {
141  if (ctx->ctx->features_count == 0) {
142  ctx->ctx->items_len = 32;
143  ctx->ctx->items = palloc(sizeof(flatgeobuf_item *) * ctx->ctx->items_len);
144  }
145  if (ctx->ctx->items_len < (ctx->ctx->features_count + 1)) {
146  ctx->ctx->items_len = ctx->ctx->items_len * 2;
147  POSTGIS_DEBUGF(2, "flatgeobuf: reallocating items to len %ld", ctx->ctx->items_len);
148  ctx->ctx->items = repalloc(ctx->ctx->items, sizeof(flatgeobuf_item *) * ctx->ctx->items_len);
149  ensure_items_len(ctx);
150  }
151 }
static void ensure_items_len(struct flatgeobuf_agg_ctx *ctx)
Definition: flatgeobuf.c:139
flatgeobuf_ctx * ctx
Definition: flatgeobuf.h:48

References flatgeobuf_agg_ctx::ctx.

Referenced by flatgeobuf_agg_transfn().

Here is the caller graph for this function: