Set causes the bit at position slot to become true on an allocated bitvector, where slot must be smaller than the length of the bit vector.
(slot uint32)
| 59 | // Set causes the bit at position slot to become true on an allocated |
| 60 | // bitvector, where slot must be smaller than the length of the bit vector. |
| 61 | func (b Bits) Set(slot uint32) { |
| 62 | b.bits[slot>>6] |= (1 << (slot & 0x3f)) |
| 63 | } |
| 64 | |
| 65 | // Shorten may be called to shorten the length of an allocated vector. |
| 66 | // This is useful when you know that a vector has a limit but you're not |