MCPcopy
hub / github.com/grafana/tempo / NewStaticBooleanArray

Function NewStaticBooleanArray

pkg/traceql/ast.go:770–782  ·  view source on GitHub ↗
(b []bool)

Source from the content-addressed store, hash-verified

768}
769
770func NewStaticBooleanArray(b []bool) Static {
771 if b == nil {
772 return Static{Type: TypeBooleanArray}
773 }
774 if len(b) == 0 {
775 return Static{Type: TypeBooleanArray, valBytes: []byte{}}
776 }
777
778 return Static{
779 Type: TypeBooleanArray,
780 valBytes: unsafe.Slice((*byte)(unsafe.Pointer(&b[0])), len(b)),
781 }
782}
783
784var (
785 seedBytes = []byte{204, 38, 247, 160, 15, 37, 67, 77}

Callers 12

KeepGroupMethod · 0.92
KeepGroupMethod · 0.92
ResultMethod · 0.92
appendMethod · 0.85
TestStatic_MapKeyFunction · 0.85
TestStatic_EqualsFunction · 0.85
TestStatic_compareFunction · 0.85
TestStatic_appendFunction · 0.85
newStaticFunction · 0.85
TestStatic_AsAnyValueFunction · 0.85

Calls

no outgoing calls

Tested by 8

TestStatic_MapKeyFunction · 0.68
TestStatic_EqualsFunction · 0.68
TestStatic_compareFunction · 0.68
TestStatic_appendFunction · 0.68
newStaticFunction · 0.68
TestStatic_AsAnyValueFunction · 0.68