GetBool returns the bool value for the specified index. index bound is not checked!
(index int)
| 183 | // GetBool returns the bool value for the specified index. |
| 184 | // index bound is not checked! |
| 185 | func (v *Vector) GetBool(index int) bool { |
| 186 | wordOffset := uintptr(index / 32 * 4) |
| 187 | localBit := uint(index % 32) |
| 188 | wordAddr := (*uint32)(unsafe.Pointer(v.buffer + wordOffset)) |
| 189 | return *wordAddr&(1<<localBit) != 0 |
| 190 | } |
| 191 | |
| 192 | // GetValue returns the data value for the specified index. |
| 193 | // index bound is not checked! |
no outgoing calls
no test coverage detected