MCPcopy
hub / github.com/uber/aresdb / GetBool

Method GetBool

memstore/vectors/vector.go:185–190  ·  view source on GitHub ↗

GetBool returns the bool value for the specified index. index bound is not checked!

(index int)

Source from the content-addressed store, hash-verified

183// GetBool returns the bool value for the specified index.
184// index bound is not checked!
185func (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!

Callers 8

LowerBoundMethod · 0.95
UpperBoundMethod · 0.95
writeBatchRecordsMethod · 0.45
GetValidityMethod · 0.45
GetDataValueMethod · 0.45
vector_test.goFile · 0.45
ExecuteFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected