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

Method Len

json/encode.go:355–355  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353}
354
355func (m *mapslice) Len() int { return len(m.elements) }
356func (m *mapslice) Less(i, j int) bool { return m.elements[i].key < m.elements[j].key }
357func (m *mapslice) Swap(i, j int) { m.elements[i], m.elements[j] = m.elements[j], m.elements[i] }
358

Callers 15

byteArrayCodecOfFunction · 0.45
sliceSizeFuncOfFunction · 0.45
sliceEncodeFuncOfFunction · 0.45
sliceDecodeFuncOfFunction · 0.45
growSliceFunction · 0.45
benchmarkMarshalFunction · 0.45
encodeFuncSliceOfFunction · 0.45
encodeFuncMapOfFunction · 0.45
encodeFuncMapAsSetOfFunction · 0.45
UnmarshalFunction · 0.45
constructArrayEncodeFuncFunction · 0.45

Calls

no outgoing calls

Tested by 2

benchmarkMarshalFunction · 0.36