core/bus_center/lnn/net_ledger/common/src/lnn_map.c
/**
 * init LNN map iterator
 *
 * @param : map Map see details in type Map
 */
init LNN map iterator
@param : map Map see details in type Map
init LNN map iterator @param : map Map see details in type Map
MapIterator *LnnMapInitIterator(Map *map)
{
    MapIterator *it = NULL;
    if (map == NULL) {
        return NULL;
    }
    it = (MapIterator *)SoftBusCalloc(sizeof(MapIterator));
    if (it == NULL) {
        return NULL;
    }
    it->node = NULL;
    it->bucketNum = 0;
    it->nodeNum = 0;
    it->map = map;
    return it;
}
MapIterator * LnnMapInitIterator ( Map * map ) { MapIterator * it = NULL ; if ( map == NULL ) { return NULL ; } it = ( MapIterator * ) SoftBusCalloc ( sizeof ( MapIterator ) ) ; if ( it == NULL ) { return NULL ; } it -> node = NULL ; it -> bucketNum = 0 ; it -> nodeNum = 0 ; it -> map = map ; return it ; }
init LNN map iterator
 @param : map Map see details in type Map
init LNN map iterator @param : map Map see details in type Map