src/runtime/hashmap: comments for iterator structure
Этот коммит содержится в:
		
							родитель
							
								
									7e05efa274
								
							
						
					
					
						коммит
						8872229a0b
					
				
					 1 изменённых файлов: 5 добавлений и 5 удалений
				
			
		|  | @ -41,11 +41,11 @@ type hashmapBucket struct { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| type hashmapIterator struct { | type hashmapIterator struct { | ||||||
| 	buckets      unsafe.Pointer | 	buckets      unsafe.Pointer // pointer to array of hashapBuckets | ||||||
| 	numBuckets   uintptr | 	numBuckets   uintptr        // length of buckets array | ||||||
| 	bucketNumber uintptr | 	bucketNumber uintptr        // current index into buckets array | ||||||
| 	bucket       *hashmapBucket | 	bucket       *hashmapBucket // current bucket in chain | ||||||
| 	bucketIndex  uint8 | 	bucketIndex  uint8          // current index into bucket | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // Get the topmost 8 bits of the hash, without using a special value (like 0). | // Get the topmost 8 bits of the hash, without using a special value (like 0). | ||||||
|  |  | ||||||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче
	
	 Damian Gryski
						Damian Gryski