ext

package
Version: v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 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 Decoder

type Decoder interface {
	Code() int8
	IsType(offset int, d *[]byte) bool
	AsValue(offset int, k reflect.Kind, d *[]byte) (interface{}, int, error)
}

type DecoderCommon

type DecoderCommon struct {
}

func (*DecoderCommon) ReadSize1

func (cd *DecoderCommon) ReadSize1(index int, d *[]byte) (byte, int)

func (*DecoderCommon) ReadSize2

func (cd *DecoderCommon) ReadSize2(index int, d *[]byte) ([]byte, int)

func (*DecoderCommon) ReadSize4

func (cd *DecoderCommon) ReadSize4(index int, d *[]byte) ([]byte, int)

func (*DecoderCommon) ReadSize8

func (cd *DecoderCommon) ReadSize8(index int, d *[]byte) ([]byte, int)

func (*DecoderCommon) ReadSizeN

func (cd *DecoderCommon) ReadSizeN(index, n int, d *[]byte) ([]byte, int)

type Encoder

type Encoder interface {
	Code() int8
	Type() reflect.Type
	CalcByteSize(value reflect.Value) (int, error)
	WriteToBytes(value reflect.Value, offset int, bytes *[]byte) int
}

type EncoderCommon

type EncoderCommon struct {
}

func (*EncoderCommon) SetByte1Int

func (c *EncoderCommon) SetByte1Int(code, offset int, d *[]byte) int

func (*EncoderCommon) SetByte1Int64

func (c *EncoderCommon) SetByte1Int64(value int64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte1Uint64

func (c *EncoderCommon) SetByte1Uint64(value uint64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte2Int

func (c *EncoderCommon) SetByte2Int(value int, offset int, d *[]byte) int

func (*EncoderCommon) SetByte2Int64

func (c *EncoderCommon) SetByte2Int64(value int64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte2Uint64

func (c *EncoderCommon) SetByte2Uint64(value uint64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte4Int

func (c *EncoderCommon) SetByte4Int(value int, offset int, d *[]byte) int

func (*EncoderCommon) SetByte4Int64

func (c *EncoderCommon) SetByte4Int64(value int64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte4Uint32

func (c *EncoderCommon) SetByte4Uint32(value uint32, offset int, d *[]byte) int

func (*EncoderCommon) SetByte4Uint64

func (c *EncoderCommon) SetByte4Uint64(value uint64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte8Int64

func (c *EncoderCommon) SetByte8Int64(value int64, offset int, d *[]byte) int

func (*EncoderCommon) SetByte8Uint64

func (c *EncoderCommon) SetByte8Uint64(value uint64, offset int, d *[]byte) int

func (*EncoderCommon) SetBytes

func (c *EncoderCommon) SetBytes(bs []byte, offset int, d *[]byte) int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL