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

Method Class

json/json.go:192–192  ·  view source on GitHub ↗

Class returns the class of k.

()

Source from the content-addressed store, hash-verified

190
191// Class returns the class of k.
192func (k Kind) Class() Kind { return Kind(1 << uint(bits.Len(uint(k))-1)) }
193
194// Append acts like Marshal but appends the json representation to b instead of
195// always reallocating a new slice.

Callers 3

TestKindFunction · 0.80
decodeInterfaceMethod · 0.80
decodeTextUnmarshalerMethod · 0.80

Calls 2

KindTypeAlias · 0.70
LenMethod · 0.45

Tested by 1

TestKindFunction · 0.64