Versions in this module Expand all Collapse all v0 v0.0.5 Jan 30, 2024 v0.0.4 Jan 10, 2024 v0.0.3 Jan 10, 2024 v0.0.2 Jan 10, 2024 Changes in this version + const Brotli + const HandShake + const HandShakeResponse + const HeartBeat + const HeartBeatResponse + const Notification + const Plain + const Popularity + const RoomEnter + const RoomEnterResponse + const Zlib + func EncodePacket(packet Packet) []byte + func NewEnterPacket(c *client.Client, uid int, buvid string, roomID int, key string) []byte + func NewHeartBeatPacket(c *client.Client) []byte + type Enter struct + Buvid string + Key string + Platform string + ProtoVer int + RoomID int + Type int + UID int + type Packet struct + Body []byte + HeaderLength int + Operation uint32 + PacketLength int + ProtocolVersion uint16 + SequenceID int + func DecodePacket(c *client.Client, data []byte) Packet + func NewPacket(c *client.Client, protocolVersion uint16, operation uint32, body []byte) Packet + func NewPacketFromBytes(c *client.Client, data []byte) Packet + func NewPlainPacket(c *client.Client, operation int, body []byte) Packet + func Slice(c *client.Client, data []byte) []Packet + func (p *Packet) Build() []byte + func (p *Packet) Unmarshal(v interface{}) error + func (p Packet) Parse() []Packet