mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-05 03:23:50 +08:00
17 lines
388 B
Go
17 lines
388 B
Go
package tlv
|
|
|
|
import "github.com/Mrs4s/MiraiGo/binary"
|
|
|
|
func T116(miscBitmap, subSigMap uint32) []byte {
|
|
return binary.NewWriterF(func(w *binary.Writer) {
|
|
w.WriteUInt16(0x116)
|
|
pos := w.FillUInt16()
|
|
w.WriteByte(0x00)
|
|
w.WriteUInt32(miscBitmap)
|
|
w.WriteUInt32(subSigMap)
|
|
w.WriteByte(0x01)
|
|
w.WriteUInt32(1600000226) // app id list
|
|
w.WriteUInt16At(pos, uint16(w.Len()-4))
|
|
})
|
|
}
|