Documentation
¶
Overview ¶
Package tuples for builtin types.
Index ¶
- func Chill()
- type Auto
- type Bool
- type Bytes
- type BytesArray
- func (b BytesArray) Decoding(r *renderer.Go, dst, src string) bool
- func (b BytesArray) Encoding(r *renderer.Go, dst, src string)
- func (b BytesArray) Len() int
- func (b BytesArray) LenExpr(r *renderer.Go, src string) string
- func (b BytesArray) Name(r *renderer.Go) string
- func (b BytesArray) Pre(r *renderer.Go, src string)
- type Duration
- func (t *Duration) Decoding(r *renderer.Go, dst, src string) bool
- func (t *Duration) Encoding(r *renderer.Go, dst, src string)
- func (t *Duration) Len() int
- func (t *Duration) LenExpr(r *renderer.Go, src string) string
- func (t *Duration) Name(r *renderer.Go) string
- func (t *Duration) Pre(r *renderer.Go, src string)
- type Float
- type HandlerStruct
- func (s *HandlerStruct) AddField(name string, typ types.Type, handler Type) *HandlerStruct
- func (s *HandlerStruct) Decoding(r *renderer.Go, dst, src string) bool
- func (s *HandlerStruct) Encoding(r *renderer.Go, dst, src string)
- func (s *HandlerStruct) Len() int
- func (s *HandlerStruct) LenExpr(r *renderer.Go, src string) string
- func (s *HandlerStruct) Name(r *renderer.Go) string
- func (s *HandlerStruct) Pre(r *renderer.Go, src string)
- type Int
- type MapsUniform
- func (m *MapsUniform) Decoding(r *renderer.Go, dst, src string) bool
- func (m *MapsUniform) Encoding(r *renderer.Go, dst, src string)
- func (m *MapsUniform) Len() int
- func (m *MapsUniform) LenExpr(r *renderer.Go, src string) string
- func (m *MapsUniform) Name(r *renderer.Go) string
- func (m *MapsUniform) Pre(r *renderer.Go, src string)
- type SliceInt
- func (i *SliceInt) Decoding(r *renderer.Go, dst, src string) bool
- func (i *SliceInt) Encoding(r *renderer.Go, dst, src string)
- func (i *SliceInt) Len() int
- func (i *SliceInt) LenExpr(r *renderer.Go, src string) string
- func (i *SliceInt) Name(*renderer.Go) string
- func (i *SliceInt) Pre(r *renderer.Go, src string)
- type SliceUint
- func (i *SliceUint) Decoding(r *renderer.Go, dst, src string) bool
- func (i *SliceUint) Encoding(r *renderer.Go, dst, src string)
- func (i *SliceUint) Len() int
- func (i *SliceUint) LenExpr(r *renderer.Go, src string) string
- func (i *SliceUint) Name(*renderer.Go) string
- func (i *SliceUint) Pre(r *renderer.Go, src string)
- type Slices
- func (s *Slices) Decoding(r *renderer.Go, dst, src string) bool
- func (s *Slices) Encoding(r *renderer.Go, dst, src string)
- func (s *Slices) Len() int
- func (s *Slices) LenExpr(r *renderer.Go, src string) string
- func (s *Slices) Name(r *renderer.Go) string
- func (s *Slices) Pre(r *renderer.Go, src string)
- type StringHandler
- func (b *StringHandler) Decoding(r *renderer.Go, dst, src string) bool
- func (b *StringHandler) Encoding(r *renderer.Go, dst, src string)
- func (b *StringHandler) Len() int
- func (b *StringHandler) LenExpr(r *renderer.Go, src string) string
- func (b *StringHandler) Name(*renderer.Go) string
- func (b *StringHandler) Pre(r *renderer.Go, src string)
- type Time
- type Type
- type Uint
- type Uvarint
- func (v *Uvarint) Decoding(r *renderer.Go, dst, src string) bool
- func (v *Uvarint) Encoding(r *renderer.Go, dst, src string)
- func (v *Uvarint) Len() int
- func (v *Uvarint) LenExpr(r *renderer.Go, src string) string
- func (v *Uvarint) Name(r *renderer.Go) string
- func (v *Uvarint) Pre(r *renderer.Go, src string)
- type Varint
- func (v *Varint) Decoding(r *renderer.Go, dst, src string) bool
- func (v *Varint) Encoding(r *renderer.Go, dst, src string)
- func (v *Varint) Len() int
- func (v *Varint) LenExpr(r *renderer.Go, src string) string
- func (v *Varint) Name(r *renderer.Go) string
- func (v *Varint) Pre(r *renderer.Go, src string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auto ¶
type Auto struct {
// contains filtered or unexported fields
}
Auto handles types that passes TypeImplementsEncoder and TypeImplementsDecoder checks.
type Bool ¶
type Bool struct{}
Bool tuples bool type.
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
Bytes handles []byte type.
type BytesArray ¶
type BytesArray int
BytesArray handles [N]byte
func (BytesArray) Decoding ¶
func (b BytesArray) Decoding(r *renderer.Go, dst, src string) bool
Decoding to implement TypeHandler.
func (BytesArray) Encoding ¶
func (b BytesArray) Encoding(r *renderer.Go, dst, src string)
Encoding to implement TypeHandler.
func (BytesArray) LenExpr ¶
func (b BytesArray) LenExpr(r *renderer.Go, src string) string
LenExpr to implement TypeHandler.
type Duration ¶ added in v0.9.0
type Duration struct{}
Duration handles time.Duration type.
type Float ¶
type Float int
Float handles floatX.
type HandlerStruct ¶ added in v0.8.0
type HandlerStruct struct {
// contains filtered or unexported fields
}
HandlerStruct support of struct type.
func NewStruct ¶ added in v0.8.0
func NewStruct(typ types.Type) *HandlerStruct
NewStruct constructs HandlerStruct. It should be filled with fields data then.
func (*HandlerStruct) AddField ¶ added in v0.8.0
func (s *HandlerStruct) AddField(name string, typ types.Type, handler Type) *HandlerStruct
AddField add field info.
func (*HandlerStruct) Decoding ¶ added in v0.8.0
func (s *HandlerStruct) Decoding(r *renderer.Go, dst, src string) bool
func (*HandlerStruct) Encoding ¶ added in v0.8.0
func (s *HandlerStruct) Encoding(r *renderer.Go, dst, src string)
func (*HandlerStruct) Len ¶ added in v0.8.0
func (s *HandlerStruct) Len() int
type Int ¶
type Int int
Int handles intXXX.
type MapsUniform ¶ added in v0.6.0
type MapsUniform struct {
// contains filtered or unexported fields
}
MapsUniform map[K]V types support for supported K and V types.
func (*MapsUniform) Decoding ¶ added in v0.6.0
func (m *MapsUniform) Decoding(r *renderer.Go, dst, src string) bool
func (*MapsUniform) Encoding ¶ added in v0.6.0
func (m *MapsUniform) Encoding(r *renderer.Go, dst, src string)
func (*MapsUniform) Len ¶ added in v0.6.0
func (m *MapsUniform) Len() int
type SliceInt ¶ added in v0.2.0
type SliceInt struct {
// contains filtered or unexported fields
}
func NewSliceInt16 ¶ added in v0.2.0
func NewSliceInt16() *SliceInt
func NewSliceInt32 ¶ added in v0.2.0
func NewSliceInt32() *SliceInt
func NewSliceInt64 ¶ added in v0.2.0
func NewSliceInt64() *SliceInt
type SliceUint ¶ added in v0.2.0
type SliceUint struct {
// contains filtered or unexported fields
}
func NewSliceUint16 ¶ added in v0.2.0
func NewSliceUint16() *SliceUint
func NewSliceUint32 ¶ added in v0.2.0
func NewSliceUint32() *SliceUint
func NewSliceUint64 ¶ added in v0.2.0
func NewSliceUint64() *SliceUint
type Slices ¶ added in v0.8.0
type Slices struct {
// contains filtered or unexported fields
}
Slices []T types support for supported types T.
type StringHandler ¶
type StringHandler struct {
// contains filtered or unexported fields
}
StringHandler handles string type.
func (*StringHandler) Decoding ¶
func (b *StringHandler) Decoding(r *renderer.Go, dst, src string) bool
Decoding to satisfy Handler.
func (*StringHandler) Encoding ¶
func (b *StringHandler) Encoding(r *renderer.Go, dst, src string)
Encoding to satisfy Handler.
func (*StringHandler) LenExpr ¶
func (b *StringHandler) LenExpr(r *renderer.Go, src string) string
LenExpr to satisfy Handler.
type Time ¶ added in v0.9.0
type Time struct{}
Time handles time.Time type.
type Type ¶
type Type interface {
Name(r *renderer.Go) string
Pre(r *renderer.Go, src string)
Len() int
LenExpr(r *renderer.Go, src string) string
Encoding(r *renderer.Go, dst, src string)
Decoding(r *renderer.Go, dst, src string) bool
}
Type a doubler of fenneg.TypeHandler to avoid cyclic imports.
type Uint ¶
type Uint int
Uint handles uintXXX.
type Uvarint ¶
type Uvarint struct {
// contains filtered or unexported fields
}
Uvarint handles uintXXX with uleb128 zigzag encoding/decoding.
func ArchUvarint ¶ added in v0.4.0
func ArchUvarint() *Uvarint
ArchUvarint handles uint with uleb128 zigzag encoding/decoding.
func Uvarint16 ¶
func Uvarint16() *Uvarint
Uvarint16 handles uint16 with uleb128 zigzag encoding/decoding.
func Uvarint32 ¶
func Uvarint32() *Uvarint
Uvarint32 handles uint32 with uleb128 zigzag encoding/decoding.
func Uvarint64 ¶
func Uvarint64() *Uvarint
Uvarint64 handles uint64 with uleb128 zigzag encoding/decoding.
type Varint ¶
type Varint struct {
// contains filtered or unexported fields
}
Varint handles intXXX with uleb128 zigzag encoding/decoding.
func ArchVarint ¶ added in v0.4.0
func ArchVarint() *Varint
ArchVarint handles int with uleb128 zigzag encoding/decoding.
func Varint16 ¶
func Varint16() *Varint
Varint16 handles int16 with uleb128 zigzag encoding/decoding.
func Varint32 ¶
func Varint32() *Varint
Varint32 handles int32 with uleb128 zigzag encoding/decoding.
func Varint64 ¶
func Varint64() *Varint
Varint64 handles int64 with uleb128 zigzag encoding/decoding.
Source Files
¶
- chill.go
- doc.go
- handler_auto.go
- handler_bool.go
- handler_bytes.go
- handler_bytes_array.go
- handler_duration.go
- handler_floats.go
- handler_ints.go
- handler_maps.go
- handler_slice_ints.go
- handler_slice_uints.go
- handler_slices.go
- handler_str.go
- handler_struct.go
- handler_time.go
- handler_uints.go
- handler_uvarints.go
- handler_varints.go
- snippets.go
- type.go