PostGIS  2.5.0dev-r@@SVN_REVISION@@
mvt_agg_context* mvt_ctx_deserialize ( const bytea *  ba)

Definition at line 934 of file mvt.c.

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

Referenced by pgis_asmvt_deserialfn().

935 {
936  ProtobufCAllocator allocator = {
939  NULL
940  };
941 
942  size_t len = VARSIZE(ba) - VARHDRSZ;
943  VectorTile__Tile *tile = vector_tile__tile__unpack(&allocator, len, (uint8_t*)VARDATA(ba));
944  mvt_agg_context *ctx = palloc(sizeof(mvt_agg_context));
945  memset(ctx, 0, sizeof(mvt_agg_context));
946  ctx->tile = tile;
947  return ctx;
948 }
VectorTile__Tile * tile
Definition: mvt.h:57
static void mvt_deallocator(void *data, void *ptr)
Definition: mvt.c:929
unsigned char uint8_t
Definition: uthash.h:79
static void * mvt_allocator(void *data, size_t size)
Definition: mvt.c:924

Here is the call graph for this function:

Here is the caller graph for this function: