PostGIS  2.1.10dev-r@@SVN_REVISION@@
void* rtalloc ( size_t  size)

Wrappers used for managing memory.

They simply call the functions defined by the caller

Wrappers used for managing memory.

They use the functions defined by the caller.

Definition at line 867 of file rt_api.c.

References rt_context_t::alloc, and RASTER_DEBUGF.

Referenced by _rti_colormap_arg_init(), _rti_iterator_arg_callback_init(), _rti_iterator_arg_empty_init(), _rti_iterator_arg_init(), _rti_iterator_arg_populate(), _rti_rasterize_arg_init(), _rti_warp_arg_init(), add_overview_constraints(), add_raster_constraints(), analyze_table(), append_stringbuffer(), array_range(), chartrim(), convert_raster(), copy_from(), copy_rastinfo(), create_index(), create_table(), cu_add_band(), drop_table(), insert_records(), main(), quantile_llist_insert(), rt_band_duplicate(), rt_band_from_wkb(), rt_band_get_histogram(), rt_band_get_nearest_pixel(), rt_band_get_pixel_line(), rt_band_get_pixel_of_value(), rt_band_get_quantiles(), rt_band_get_quantiles_stream(), rt_band_get_summary_stats(), rt_band_get_value_count(), rt_band_new_inline(), rt_band_new_offline(), rt_band_reclass(), rt_pixel_set_to_array(), rt_raster_clone(), rt_raster_colormap(), rt_raster_deserialize(), rt_raster_from_gdal_dataset(), rt_raster_from_hexwkb(), rt_raster_from_wkb(), rt_raster_gdal_drivers(), rt_raster_gdal_polygonize(), rt_raster_gdal_rasterize(), rt_raster_gdal_warp(), rt_raster_generate_new_band(), rt_raster_get_convex_hull(), rt_raster_get_perimeter(), rt_raster_iterator(), rt_raster_new(), rt_raster_pixel_as_polygon(), rt_raster_serialize(), rt_raster_surface(), rt_raster_to_gdal_mem(), rt_raster_to_hexwkb(), rt_raster_to_wkb(), rt_util_envelope_to_lwpoly(), rt_util_gdal_sr_auth_info(), strreplace(), strsplit(), test_band_metadata(), test_band_pixtype_16BSI(), test_band_pixtype_16BUI(), test_band_pixtype_1BB(), test_band_pixtype_2BUI(), test_band_pixtype_32BF(), test_band_pixtype_32BSI(), test_band_pixtype_32BUI(), test_band_pixtype_4BUI(), test_band_pixtype_64BF(), test_band_pixtype_8BSI(), test_band_pixtype_8BUI(), test_band_reclass(), test_gdal_rasterize(), test_raster_colormap(), test_raster_iterator(), test_raster_replace_band(), trim(), and vacuum_table().

867  {
868  void * mem = ctx_t.alloc(size);
869  RASTER_DEBUGF(5, "rtalloc called: %d@%p", size, mem);
870  return mem;
871 }
#define RASTER_DEBUGF(level, msg,...)
Definition: rt_api.h:285
static struct rt_context_t ctx_t
Definition: rt_api.c:813
rt_allocator alloc
Definition: rt_api.c:804