header

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarsHeader

type MarsHeader struct {
	HeadLen  uint32
	Version  uint32
	Command  uint32
	Sequence uint32
	BodyLen  uint32
}

wx mars header 消息头部信息, 固定长度20

func (*MarsHeader) BodyLength

func (h *MarsHeader) BodyLength() int

func (*MarsHeader) Clone

func (h *MarsHeader) Clone() meim.ProtocolHeader

func (*MarsHeader) Cmd

func (h *MarsHeader) Cmd() int

func (*MarsHeader) Decode

func (h *MarsHeader) Decode(b []byte) error

func (*MarsHeader) Encode

func (h *MarsHeader) Encode() ([]byte, error)

func (*MarsHeader) Length

func (h *MarsHeader) Length() int

func (*MarsHeader) Seq

func (h *MarsHeader) Seq() int

func (*MarsHeader) SetBodyLength

func (h *MarsHeader) SetBodyLength(n int)

func (*MarsHeader) SetCmd

func (h *MarsHeader) SetCmd(cmd int)

func (*MarsHeader) SetSeq

func (h *MarsHeader) SetSeq(seq int)

func (*MarsHeader) SetVer

func (h *MarsHeader) SetVer(v int)

func (*MarsHeader) String

func (h *MarsHeader) String() string

func (*MarsHeader) Ver

func (h *MarsHeader) Ver() int

Jump to

Keyboard shortcuts

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