SetAllValid set all bits to be 1 in a bool typed vector.
()
| 273 | |
| 274 | // SetAllValid set all bits to be 1 in a bool typed vector. |
| 275 | func (v *Vector) SetAllValid() { |
| 276 | // buffer are 64 bytes aligned so we can assign word by word. |
| 277 | for i := 0; i < v.Bytes; i += 4 { |
| 278 | *(*uint32)(utils.MemAccess(unsafe.Pointer(v.buffer), i)) = 0xFFFFFFFF |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | // CheckAllValid checks whether all bits are 1 in a bool typed vector. |
| 283 | func (v *Vector) CheckAllValid() bool { |
no test coverage detected