PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ensure_properties_size()

static void ensure_properties_size ( struct flatgeobuf_agg_ctx ctx,
size_t  size 
)
static

Definition at line 122 of file flatgeobuf.c.

123 {
124  if (ctx->ctx->properties_size == 0) {
125  ctx->ctx->properties_size = 1024 * 4;
126  POSTGIS_DEBUGF(2, "flatgeobuf: properties buffer to size %d", ctx->ctx->properties_size);
127  ctx->ctx->properties = palloc(ctx->ctx->properties_size);
128  }
129  if (ctx->ctx->properties_size < size) {
130  ctx->ctx->properties_size = ctx->ctx->properties_size * 2;
131  POSTGIS_DEBUGF(2, "flatgeobuf: reallocating properties buffer to size %d", ctx->ctx->properties_size);
132  ctx->ctx->properties = repalloc(ctx->ctx->properties, ctx->ctx->properties_size);
133  ensure_properties_size(ctx, size);
134  }
135 }
static void ensure_properties_size(struct flatgeobuf_agg_ctx *ctx, size_t size)
Definition: flatgeobuf.c:122
flatgeobuf_ctx * ctx
Definition: flatgeobuf.h:48

References flatgeobuf_agg_ctx::ctx.

Referenced by encode_properties().

Here is the caller graph for this function: