This commit is contained in:
weizhihong 2023-10-26 18:00:23 +08:00
commit 199d0b012b
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ type SectionCmdMsgPack struct {
Scs []*SectionCmdMsg
}
func NewSectionCmdMsgPack(scs []*SectionCmdMsg) *SectionCmdMsgPack {
return &SectionCmdMsgPack{Ck: 0x80, Scs: scs}
}
func (s *SectionCmdMsgPack) Encode() []byte {
buf := make([]byte, 0, 1+len(s.Scs))
buf = append(buf, s.Ck)