PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ ensure_properties_size()

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

Definition at line 123 of file flatgeobuf.c.

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

References flatgeobuf_agg_ctx::ctx.

Referenced by encode_properties().

Here is the caller graph for this function: