PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ mvt_ctx_deserialize()

mvt_agg_context* mvt_ctx_deserialize ( const bytea *  ba)

Definition at line 1141 of file mvt.c.

1142 {
1143  ProtobufCAllocator allocator =
1144  {
1145  mvt_allocator,
1147  NULL
1148  };
1149 
1150  size_t len = VARSIZE_ANY_EXHDR(ba);
1151  VectorTile__Tile *tile = vector_tile__tile__unpack(&allocator, len, (uint8_t*)VARDATA(ba));
1152  mvt_agg_context *ctx = palloc(sizeof(mvt_agg_context));
1153  memset(ctx, 0, sizeof(mvt_agg_context));
1154  ctx->tile = tile;
1155  return ctx;
1156 }
static void mvt_deallocator(__attribute__((__unused__)) void *data, void *ptr)
Definition: mvt.c:1136
static void * mvt_allocator(__attribute__((__unused__)) void *data, size_t size)
Definition: mvt.c:1131
VectorTile__Tile * tile
Definition: mvt.h:80

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: