setof

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Byte

type Byte map[byte]struct{}

Byte is a set of bytes that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func ByteFromSlice added in v1.5.0

func ByteFromSlice(s []byte) Byte

ByteFromSlice creates a Byte from a slice.

func (Byte) AsSlice added in v1.5.0

func (s Byte) AsSlice() []byte

AsSlice returns the set as a slice.

func (*Byte) DecodeMsg

func (s *Byte) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Byte) EncodeMsg

func (s Byte) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Byte) MarshalMsg

func (s Byte) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Byte) Msgsize

func (s Byte) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Byte) UnmarshalMsg

func (s *Byte) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type ByteSorted

type ByteSorted map[byte]struct{}

ByteSorted is a set of bytes that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func ByteSortedFromSlice added in v1.5.0

func ByteSortedFromSlice(s []byte) ByteSorted

ByteSortedFromSlice creates a ByteSorted from a slice.

func (ByteSorted) AsSlice added in v1.5.0

func (s ByteSorted) AsSlice() []byte

AsSlice returns the set as a sorted slice.

func (*ByteSorted) DecodeMsg

func (s *ByteSorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (ByteSorted) EncodeMsg

func (s ByteSorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (ByteSorted) MarshalMsg

func (s ByteSorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (ByteSorted) Msgsize

func (s ByteSorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*ByteSorted) UnmarshalMsg

func (s *ByteSorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Float32

type Float32 map[float32]struct{}

Float32 is a set of float32s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Float32FromSlice added in v1.5.0

func Float32FromSlice(s []float32) Float32

Float32FromSlice creates a Float32 from a slice.

func (Float32) AsSlice added in v1.5.0

func (s Float32) AsSlice() []float32

AsSlice returns the set as a slice.

func (*Float32) DecodeMsg

func (s *Float32) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Float32) EncodeMsg

func (s Float32) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Float32) MarshalMsg

func (s Float32) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Float32) Msgsize

func (s Float32) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Float32) UnmarshalMsg

func (s *Float32) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Float32Sorted

type Float32Sorted map[float32]struct{}

Float32Sorted is a set of float32s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Float32SortedFromSlice added in v1.5.0

func Float32SortedFromSlice(s []float32) Float32Sorted

Float32SortedFromSlice creates a Float32Sorted from a slice.

func (Float32Sorted) AsSlice added in v1.5.0

func (s Float32Sorted) AsSlice() []float32

AsSlice returns the set as a sorted slice.

func (*Float32Sorted) DecodeMsg

func (s *Float32Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Float32Sorted) EncodeMsg

func (s Float32Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Float32Sorted) MarshalMsg

func (s Float32Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Float32Sorted) Msgsize

func (s Float32Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Float32Sorted) UnmarshalMsg

func (s *Float32Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Float64

type Float64 map[float64]struct{}

Float64 is a set of float64s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Float64FromSlice added in v1.5.0

func Float64FromSlice(s []float64) Float64

Float64FromSlice creates a Float64 from a slice.

func (Float64) AsSlice added in v1.5.0

func (s Float64) AsSlice() []float64

AsSlice returns the set as a slice.

func (*Float64) DecodeMsg

func (s *Float64) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Float64) EncodeMsg

func (s Float64) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Float64) MarshalMsg

func (s Float64) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Float64) Msgsize

func (s Float64) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Float64) UnmarshalMsg

func (s *Float64) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Float64Sorted

type Float64Sorted map[float64]struct{}

Float64Sorted is a set of float64s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Float64SortedFromSlice added in v1.5.0

func Float64SortedFromSlice(s []float64) Float64Sorted

Float64SortedFromSlice creates a Float64Sorted from a slice.

func (Float64Sorted) AsSlice added in v1.5.0

func (s Float64Sorted) AsSlice() []float64

AsSlice returns the set as a sorted slice.

func (*Float64Sorted) DecodeMsg

func (s *Float64Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Float64Sorted) EncodeMsg

func (s Float64Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Float64Sorted) MarshalMsg

func (s Float64Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Float64Sorted) Msgsize

func (s Float64Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Float64Sorted) UnmarshalMsg

func (s *Float64Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int

type Int map[int]struct{}

Int is a set of ints that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func IntFromSlice added in v1.5.0

func IntFromSlice(s []int) Int

IntFromSlice creates a Int from a slice.

func (Int) AsSlice added in v1.5.0

func (s Int) AsSlice() []int

AsSlice returns the set as a slice.

func (*Int) DecodeMsg

func (s *Int) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int) EncodeMsg

func (s Int) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int) MarshalMsg

func (s Int) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int) Msgsize

func (s Int) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int) UnmarshalMsg

func (s *Int) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int16

type Int16 map[int16]struct{}

Int16 is a set of int16s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Int16FromSlice added in v1.5.0

func Int16FromSlice(s []int16) Int16

Int16FromSlice creates a Int16 from a slice.

func (Int16) AsSlice added in v1.5.0

func (s Int16) AsSlice() []int16

AsSlice returns the set as a slice.

func (*Int16) DecodeMsg

func (s *Int16) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int16) EncodeMsg

func (s Int16) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int16) MarshalMsg

func (s Int16) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int16) Msgsize

func (s Int16) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int16) UnmarshalMsg

func (s *Int16) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int16Sorted

type Int16Sorted map[int16]struct{}

Int16Sorted is a set of int16s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Int16SortedFromSlice added in v1.5.0

func Int16SortedFromSlice(s []int16) Int16Sorted

Int16SortedFromSlice creates a Int16Sorted from a slice.

func (Int16Sorted) AsSlice added in v1.5.0

func (s Int16Sorted) AsSlice() []int16

AsSlice returns the set as a sorted slice.

func (*Int16Sorted) DecodeMsg

func (s *Int16Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int16Sorted) EncodeMsg

func (s Int16Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int16Sorted) MarshalMsg

func (s Int16Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int16Sorted) Msgsize

func (s Int16Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int16Sorted) UnmarshalMsg

func (s *Int16Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int32

type Int32 map[int32]struct{}

Int32 is a set of int32s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Int32FromSlice added in v1.5.0

func Int32FromSlice(s []int32) Int32

Int32FromSlice creates a Int32 from a slice.

func (Int32) AsSlice added in v1.5.0

func (s Int32) AsSlice() []int32

AsSlice returns the set as a slice.

func (*Int32) DecodeMsg

func (s *Int32) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int32) EncodeMsg

func (s Int32) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int32) MarshalMsg

func (s Int32) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int32) Msgsize

func (s Int32) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int32) UnmarshalMsg

func (s *Int32) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int32Sorted

type Int32Sorted map[int32]struct{}

Int32Sorted is a set of int32s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Int32SortedFromSlice added in v1.5.0

func Int32SortedFromSlice(s []int32) Int32Sorted

Int32SortedFromSlice creates a Int32Sorted from a slice.

func (Int32Sorted) AsSlice added in v1.5.0

func (s Int32Sorted) AsSlice() []int32

AsSlice returns the set as a sorted slice.

func (*Int32Sorted) DecodeMsg

func (s *Int32Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int32Sorted) EncodeMsg

func (s Int32Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int32Sorted) MarshalMsg

func (s Int32Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int32Sorted) Msgsize

func (s Int32Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int32Sorted) UnmarshalMsg

func (s *Int32Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int64

type Int64 map[int64]struct{}

Int64 is a set of int64s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Int64FromSlice added in v1.5.0

func Int64FromSlice(s []int64) Int64

Int64FromSlice creates a Int64 from a slice.

func (Int64) AsSlice added in v1.5.0

func (s Int64) AsSlice() []int64

AsSlice returns the set as a slice.

func (*Int64) DecodeMsg

func (s *Int64) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int64) EncodeMsg

func (s Int64) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int64) MarshalMsg

func (s Int64) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int64) Msgsize

func (s Int64) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int64) UnmarshalMsg

func (s *Int64) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int64Sorted

type Int64Sorted map[int64]struct{}

Int64Sorted is a set of int64s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Int64SortedFromSlice added in v1.5.0

func Int64SortedFromSlice(s []int64) Int64Sorted

Int64SortedFromSlice creates a Int64Sorted from a slice.

func (Int64Sorted) AsSlice added in v1.5.0

func (s Int64Sorted) AsSlice() []int64

AsSlice returns the set as a sorted slice.

func (*Int64Sorted) DecodeMsg

func (s *Int64Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int64Sorted) EncodeMsg

func (s Int64Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int64Sorted) MarshalMsg

func (s Int64Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int64Sorted) Msgsize

func (s Int64Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int64Sorted) UnmarshalMsg

func (s *Int64Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int8

type Int8 map[int8]struct{}

Int8 is a set of int8s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Int8FromSlice added in v1.5.0

func Int8FromSlice(s []int8) Int8

Int8FromSlice creates a Int8 from a slice.

func (Int8) AsSlice added in v1.5.0

func (s Int8) AsSlice() []int8

AsSlice returns the set as a slice.

func (*Int8) DecodeMsg

func (s *Int8) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int8) EncodeMsg

func (s Int8) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int8) MarshalMsg

func (s Int8) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int8) Msgsize

func (s Int8) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int8) UnmarshalMsg

func (s *Int8) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Int8Sorted

type Int8Sorted map[int8]struct{}

Int8Sorted is a set of int8s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Int8SortedFromSlice added in v1.5.0

func Int8SortedFromSlice(s []int8) Int8Sorted

Int8SortedFromSlice creates a Int8Sorted from a slice.

func (Int8Sorted) AsSlice added in v1.5.0

func (s Int8Sorted) AsSlice() []int8

AsSlice returns the set as a sorted slice.

func (*Int8Sorted) DecodeMsg

func (s *Int8Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Int8Sorted) EncodeMsg

func (s Int8Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Int8Sorted) MarshalMsg

func (s Int8Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Int8Sorted) Msgsize

func (s Int8Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Int8Sorted) UnmarshalMsg

func (s *Int8Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type IntSorted

type IntSorted map[int]struct{}

IntSorted is a set of ints that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func IntSortedFromSlice added in v1.5.0

func IntSortedFromSlice(s []int) IntSorted

IntSortedFromSlice creates a IntSorted from a slice.

func (IntSorted) AsSlice added in v1.5.0

func (s IntSorted) AsSlice() []int

AsSlice returns the set as a sorted slice.

func (*IntSorted) DecodeMsg

func (s *IntSorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (IntSorted) EncodeMsg

func (s IntSorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (IntSorted) MarshalMsg

func (s IntSorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (IntSorted) Msgsize

func (s IntSorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*IntSorted) UnmarshalMsg

func (s *IntSorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type String

type String map[string]struct{}

String is a set of strings that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func StringFromSlice added in v1.5.0

func StringFromSlice(s []string) String

StringFromSlice creates a String from a slice.

func (String) AsSlice added in v1.5.0

func (s String) AsSlice() []string

AsSlice returns the set as a slice.

func (*String) DecodeMsg

func (s *String) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (String) EncodeMsg

func (s String) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (String) MarshalMsg

func (s String) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (String) Msgsize

func (s String) Msgsize() int

Msgsize returns the maximum size of the message.

func (*String) UnmarshalMsg

func (s *String) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type StringSorted

type StringSorted map[string]struct{}

StringSorted is a set of strings that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func StringSortedFromSlice added in v1.5.0

func StringSortedFromSlice(s []string) StringSorted

StringSortedFromSlice creates a StringSorted from a slice.

func (StringSorted) AsSlice added in v1.5.0

func (s StringSorted) AsSlice() []string

AsSlice returns the set as a sorted slice.

func (*StringSorted) DecodeMsg

func (s *StringSorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (StringSorted) EncodeMsg

func (s StringSorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (StringSorted) MarshalMsg

func (s StringSorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (StringSorted) Msgsize

func (s StringSorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*StringSorted) UnmarshalMsg

func (s *StringSorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint

type Uint map[uint]struct{}

Uint is a set of uints that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func UintFromSlice added in v1.5.0

func UintFromSlice(s []uint) Uint

UintFromSlice creates a Uint from a slice.

func (Uint) AsSlice added in v1.5.0

func (s Uint) AsSlice() []uint

AsSlice returns the set as a slice.

func (*Uint) DecodeMsg

func (s *Uint) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint) EncodeMsg

func (s Uint) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint) MarshalMsg

func (s Uint) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint) Msgsize

func (s Uint) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint) UnmarshalMsg

func (s *Uint) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint16

type Uint16 map[uint16]struct{}

Uint16 is a set of uint16s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Uint16FromSlice added in v1.5.0

func Uint16FromSlice(s []uint16) Uint16

Uint16FromSlice creates a Uint16 from a slice.

func (Uint16) AsSlice added in v1.5.0

func (s Uint16) AsSlice() []uint16

AsSlice returns the set as a slice.

func (*Uint16) DecodeMsg

func (s *Uint16) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint16) EncodeMsg

func (s Uint16) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint16) MarshalMsg

func (s Uint16) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint16) Msgsize

func (s Uint16) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint16) UnmarshalMsg

func (s *Uint16) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint16Sorted

type Uint16Sorted map[uint16]struct{}

Uint16Sorted is a set of uint16s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Uint16SortedFromSlice added in v1.5.0

func Uint16SortedFromSlice(s []uint16) Uint16Sorted

Uint16SortedFromSlice creates a Uint16Sorted from a slice.

func (Uint16Sorted) AsSlice added in v1.5.0

func (s Uint16Sorted) AsSlice() []uint16

AsSlice returns the set as a sorted slice.

func (*Uint16Sorted) DecodeMsg

func (s *Uint16Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint16Sorted) EncodeMsg

func (s Uint16Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint16Sorted) MarshalMsg

func (s Uint16Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint16Sorted) Msgsize

func (s Uint16Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint16Sorted) UnmarshalMsg

func (s *Uint16Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint32

type Uint32 map[uint32]struct{}

Uint32 is a set of uint32s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Uint32FromSlice added in v1.5.0

func Uint32FromSlice(s []uint32) Uint32

Uint32FromSlice creates a Uint32 from a slice.

func (Uint32) AsSlice added in v1.5.0

func (s Uint32) AsSlice() []uint32

AsSlice returns the set as a slice.

func (*Uint32) DecodeMsg

func (s *Uint32) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint32) EncodeMsg

func (s Uint32) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint32) MarshalMsg

func (s Uint32) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint32) Msgsize

func (s Uint32) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint32) UnmarshalMsg

func (s *Uint32) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint32Sorted

type Uint32Sorted map[uint32]struct{}

Uint32Sorted is a set of uint32s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Uint32SortedFromSlice added in v1.5.0

func Uint32SortedFromSlice(s []uint32) Uint32Sorted

Uint32SortedFromSlice creates a Uint32Sorted from a slice.

func (Uint32Sorted) AsSlice added in v1.5.0

func (s Uint32Sorted) AsSlice() []uint32

AsSlice returns the set as a sorted slice.

func (*Uint32Sorted) DecodeMsg

func (s *Uint32Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint32Sorted) EncodeMsg

func (s Uint32Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint32Sorted) MarshalMsg

func (s Uint32Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint32Sorted) Msgsize

func (s Uint32Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint32Sorted) UnmarshalMsg

func (s *Uint32Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint64

type Uint64 map[uint64]struct{}

Uint64 is a set of uint64s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Uint64FromSlice added in v1.5.0

func Uint64FromSlice(s []uint64) Uint64

Uint64FromSlice creates a Uint64 from a slice.

func (Uint64) AsSlice added in v1.5.0

func (s Uint64) AsSlice() []uint64

AsSlice returns the set as a slice.

func (*Uint64) DecodeMsg

func (s *Uint64) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint64) EncodeMsg

func (s Uint64) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint64) MarshalMsg

func (s Uint64) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint64) Msgsize

func (s Uint64) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint64) UnmarshalMsg

func (s *Uint64) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint64Sorted

type Uint64Sorted map[uint64]struct{}

Uint64Sorted is a set of uint64s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Uint64SortedFromSlice added in v1.5.0

func Uint64SortedFromSlice(s []uint64) Uint64Sorted

Uint64SortedFromSlice creates a Uint64Sorted from a slice.

func (Uint64Sorted) AsSlice added in v1.5.0

func (s Uint64Sorted) AsSlice() []uint64

AsSlice returns the set as a sorted slice.

func (*Uint64Sorted) DecodeMsg

func (s *Uint64Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint64Sorted) EncodeMsg

func (s Uint64Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint64Sorted) MarshalMsg

func (s Uint64Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint64Sorted) Msgsize

func (s Uint64Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint64Sorted) UnmarshalMsg

func (s *Uint64Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint8

type Uint8 map[uint8]struct{}

Uint8 is a set of uint8s that will be stored as an array. Elements are not sorted and the order of elements is not guaranteed.

func Uint8FromSlice added in v1.5.0

func Uint8FromSlice(s []uint8) Uint8

Uint8FromSlice creates a Uint8 from a slice.

func (Uint8) AsSlice added in v1.5.0

func (s Uint8) AsSlice() []uint8

AsSlice returns the set as a slice.

func (*Uint8) DecodeMsg

func (s *Uint8) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint8) EncodeMsg

func (s Uint8) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint8) MarshalMsg

func (s Uint8) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint8) Msgsize

func (s Uint8) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint8) UnmarshalMsg

func (s *Uint8) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type Uint8Sorted

type Uint8Sorted map[uint8]struct{}

Uint8Sorted is a set of uint8s that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func Uint8SortedFromSlice added in v1.5.0

func Uint8SortedFromSlice(s []uint8) Uint8Sorted

Uint8SortedFromSlice creates a Uint8Sorted from a slice.

func (Uint8Sorted) AsSlice added in v1.5.0

func (s Uint8Sorted) AsSlice() []uint8

AsSlice returns the set as a sorted slice.

func (*Uint8Sorted) DecodeMsg

func (s *Uint8Sorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (Uint8Sorted) EncodeMsg

func (s Uint8Sorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (Uint8Sorted) MarshalMsg

func (s Uint8Sorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (Uint8Sorted) Msgsize

func (s Uint8Sorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*Uint8Sorted) UnmarshalMsg

func (s *Uint8Sorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

type UintSorted

type UintSorted map[uint]struct{}

UintSorted is a set of uints that will be stored as an array. Elements are sorted and the order of elements is guaranteed.

func UintSortedFromSlice added in v1.5.0

func UintSortedFromSlice(s []uint) UintSorted

UintSortedFromSlice creates a UintSorted from a slice.

func (UintSorted) AsSlice added in v1.5.0

func (s UintSorted) AsSlice() []uint

AsSlice returns the set as a sorted slice.

func (*UintSorted) DecodeMsg

func (s *UintSorted) DecodeMsg(reader *msgp.Reader) error

DecodeMsg decodes the message from the reader.

func (UintSorted) EncodeMsg

func (s UintSorted) EncodeMsg(writer *msgp.Writer) error

EncodeMsg encodes the message to the writer.

func (UintSorted) MarshalMsg

func (s UintSorted) MarshalMsg(bytes []byte) ([]byte, error)

MarshalMsg encodes the message to the bytes.

func (UintSorted) Msgsize

func (s UintSorted) Msgsize() int

Msgsize returns the maximum size of the message.

func (*UintSorted) UnmarshalMsg

func (s *UintSorted) UnmarshalMsg(bytes []byte) ([]byte, error)

UnmarshalMsg decodes the message from the bytes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL