MCPcopy Create free account
hub / github.com/tinylib/msgp / Int16SortedFromSlice

Function Int16SortedFromSlice

msgp/setof/generated.go:1985–1994  ·  view source on GitHub ↗

Int16SortedFromSlice creates a Int16Sorted from a slice.

(s []int16)

Source from the content-addressed store, hash-verified

1983
1984// Int16SortedFromSlice creates a Int16Sorted from a slice.
1985func Int16SortedFromSlice(s []int16) Int16Sorted {
1986 if s == nil {
1987 return nil
1988 }
1989 dst := make(Int16Sorted, len(s))
1990 for _, v := range s {
1991 dst[v] = struct{}{}
1992 }
1993 return dst
1994}
1995
1996// Uint16 is a set of uint16s that will be stored as an array.
1997// Elements are not sorted and the order of elements is not guaranteed.

Callers 3

Calls

no outgoing calls

Tested by 3

Used in the wild real call sites across dependent graphs

searching dependent graphs…