src/pipewire/map.h
static inline void pw_map_init(struct pw_map *map, size_t size, size_t extend)
{
	pw_array_init(&map->items, extend);
	pw_array_ensure_size(&map->items, size * sizeof(union pw_map_item));
	map->free_list = SPA_ID_INVALID;
}
/** Initialize a map
 * \param map the map to initialize
 * \param size the initial size of the map
 * \param extend the amount to bytes to grow the map with when needed
 * \memberof pw_map
 */
Initialize a map
\param map the map to initialize
\param size the initial size of the map
\param extend the amount to bytes to grow the map with when needed
\memberof pw_map
Initialize a map \ param map the map to initialize \ param size the initial size of the map \ param extend the amount to bytes to grow the map with when needed \ memberof pw_map
static inline void pw_map_init(struct pw_map *map, size_t size, size_t extend)
{
	pw_array_init(&map->items, extend);
	pw_array_ensure_size(&map->items, size * sizeof(union pw_map_item));
	map->free_list = SPA_ID_INVALID;
}
static inline void pw_map_init ( struct pw_map * map , size_t size , size_t extend ) { pw_array_init ( & map -> items , extend ) ; pw_array_ensure_size ( & map -> items , size * sizeof ( union pw_map_item ) ) ; map -> free_list = SPA_ID_INVALID ; }
Initialize a map
 \param map the map to initialize
 \param size the initial size of the map
 \param extend the amount to bytes to grow the map with when needed
 \memberof pw_map
Initialize a map \ param map the map to initialize \ param size the initial size of the map \ param extend the amount to bytes to grow the map with when needed \ memberof pw_map