MCPcopy Create free account
hub / github.com/segmentio/encoding / isTrue

Function isTrue

thrift/encode.go:258–261  ·  view source on GitHub ↗
(v reflect.Value)

Source from the content-addressed store, hash-verified

256}
257
258func isTrue(v reflect.Value) bool {
259 v = dereference(v)
260 return v.IsValid() && v.Kind() == reflect.Bool && v.Bool()
261}
262
263func (enc *structEncoder) encode(w Writer, v reflect.Value, flags flags) error {
264 useDeltaEncoding := flags.have(useDeltaEncoding)

Callers 1

encodeMethod · 0.85

Calls 3

dereferenceFunction · 0.85
KindMethod · 0.65
BoolMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…