PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ mvt_ctx_deserialize()

mvt_agg_context* mvt_ctx_deserialize ( const bytea *  ba)

Definition at line 1350 of file mvt.c.

1351 {
1352  ProtobufCAllocator allocator =
1353  {
1354  mvt_allocator,
1356  NULL
1357  };
1358 
1359  size_t len = VARSIZE_ANY_EXHDR(ba);
1360  VectorTile__Tile *tile = vector_tile__tile__unpack(&allocator, len, (uint8_t*)VARDATA(ba));
1361  mvt_agg_context *ctx = palloc(sizeof(mvt_agg_context));
1362  memset(ctx, 0, sizeof(mvt_agg_context));
1363  ctx->tile = tile;
1364  return ctx;
1365 }
static void mvt_deallocator(__attribute__((__unused__)) void *data, void *ptr)
Definition: mvt.c:1345
static void * mvt_allocator(__attribute__((__unused__)) void *data, size_t size)
Definition: mvt.c:1340
VectorTile__Tile * tile
Definition: mvt.h:77

References mvt_allocator(), mvt_deallocator(), and mvt_agg_context::tile.

Referenced by pgis_asmvt_deserialfn().

Here is the call graph for this function:
Here is the caller graph for this function: