Documentation ¶
Index ¶
- type MarsHeader
- func (h *MarsHeader) BodyLength() int
- func (h *MarsHeader) Clone() meim.ProtocolHeader
- func (h *MarsHeader) Cmd() int
- func (h *MarsHeader) Decode(b []byte) error
- func (h *MarsHeader) Encode() ([]byte, error)
- func (h *MarsHeader) Length() int
- func (h *MarsHeader) Seq() int
- func (h *MarsHeader) SetBodyLength(n int)
- func (h *MarsHeader) SetCmd(cmd int)
- func (h *MarsHeader) SetSeq(seq int)
- func (h *MarsHeader) SetVer(v int)
- func (h *MarsHeader) String() string
- func (h *MarsHeader) Ver() int
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
Click to show internal directories.
Click to hide internal directories.