Init initializes a Set to have a given maximum size. The set can contain numbers in [0, max-1].
(max uint32)
| 27 | // Init initializes a Set to have a given maximum size. |
| 28 | // The set can contain numbers in [0, max-1]. |
| 29 | func (s *Set) Init(max uint32) { |
| 30 | s.sparse = make([]uint32, max) |
| 31 | } |
| 32 | |
| 33 | // Reset clears (empties) the set. |
| 34 | func (s *Set) Reset() { |
no outgoing calls