encoding

package
v0.0.0-...-42b9e0f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(p []byte) *Decoder

func NewDecoderFromReader

func NewDecoderFromReader(r io.Reader) *Decoder

func (*Decoder) Bool

func (decoder *Decoder) Bool() (v bool, err error)

func (*Decoder) LengthFieldBasedFrame

func (decoder *Decoder) LengthFieldBasedFrame() (p []byte, err error)

func (*Decoder) LengthFieldBasedStringFrame

func (decoder *Decoder) LengthFieldBasedStringFrame() (s string, err error)

func (*Decoder) Raw

func (decoder *Decoder) Raw() (p []byte, err error)

func (*Decoder) Time

func (decoder *Decoder) Time() (v time.Time, err error)

func (*Decoder) Uint64

func (decoder *Decoder) Uint64() (v uint64, err error)

type Encoder

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

func NewEncoder

func NewEncoder() *Encoder

func (*Encoder) Bytes

func (encoder *Encoder) Bytes() (p []byte)

func (*Encoder) Close

func (encoder *Encoder) Close()

func (*Encoder) Reset

func (encoder *Encoder) Reset()

func (*Encoder) WriteBool

func (encoder *Encoder) WriteBool(v bool)

func (*Encoder) WriteLengthFieldBasedFrame

func (encoder *Encoder) WriteLengthFieldBasedFrame(p []byte)

func (*Encoder) WriteRaw

func (encoder *Encoder) WriteRaw(p []byte)

func (*Encoder) WriteTime

func (encoder *Encoder) WriteTime(v time.Time)

func (*Encoder) WriteUint64

func (encoder *Encoder) WriteUint64(v uint64)

Jump to

Keyboard shortcuts

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