Not returns a bit array resulting from a bitwise Not of the provided bit array.
()
| 164 | |
| 165 | // Not returns a bit array resulting from a bitwise Not of the provided bit array. |
| 166 | func (bA *BitArray) Not() *BitArray { |
| 167 | if bA == nil { |
| 168 | return nil // Degenerate |
| 169 | } |
| 170 | bA.mtx.Lock() |
| 171 | defer bA.mtx.Unlock() |
| 172 | return bA.not() |
| 173 | } |
| 174 | |
| 175 | func (bA *BitArray) not() *BitArray { |
| 176 | c := bA.copy() |
no test coverage detected