codeman

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec struct {
	// contains filtered or unexported fields
}

Codec is the primary type for encoding data into a specific format.

func NewCodec

func NewCodec() *Codec

NewCodec

func (*Codec) Bool

func (s *Codec) Bool(v bool) *Codec

func (*Codec) Byte

func (s *Codec) Byte(v byte) *Codec

func (*Codec) Bytes

func (s *Codec) Bytes(v []byte) *Codec

func (*Codec) Content

func (s *Codec) Content() []byte

func (*Codec) Float

func (s *Codec) Float(f float64) *Codec

func (*Codec) Int

func (s *Codec) Int(v int64) *Codec

func (*Codec) Recycle

func (s *Codec) Recycle()

func (*Codec) Str

func (s *Codec) Str(v string) *Codec

func (*Codec) StrSlice

func (s *Codec) StrSlice(v []string) *Codec

func (*Codec) Uint32 added in v1.9.0

func (s *Codec) Uint32(v uint32) *Codec

func (*Codec) Uint32Slice

func (s *Codec) Uint32Slice(v []uint32) *Codec

type Integer added in v1.7.3

type Integer constraints.Integer

type Reader added in v1.9.0

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader added in v1.9.0

func NewReader(buf []byte) *Reader

func (*Reader) Bool added in v1.9.0

func (s *Reader) Bool() bool

func (*Reader) Byte added in v1.9.0

func (s *Reader) Byte() byte

func (*Reader) Done added in v1.9.0

func (s *Reader) Done() bool

func (*Reader) Float64 added in v1.9.0

func (s *Reader) Float64() float64

func (*Reader) Int64 added in v1.9.0

func (s *Reader) Int64() int64

func (*Reader) RawBytes added in v1.9.0

func (s *Reader) RawBytes() []byte

func (*Reader) Str added in v1.9.0

func (s *Reader) Str() string

func (*Reader) StrSlice added in v1.9.0

func (s *Reader) StrSlice() []string

func (*Reader) Uint32 added in v1.9.0

func (s *Reader) Uint32() uint32

func (*Reader) Uint32Slice added in v1.9.0

func (s *Reader) Uint32Slice() []uint32

Jump to

Keyboard shortcuts

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