mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 19:17:38 +08:00
add t16.go.
This commit is contained in:
parent
e136c01dfc
commit
d87c354649
18
protocol/tlv/t16.go
Normal file
18
protocol/tlv/t16.go
Normal file
@ -0,0 +1,18 @@
|
||||
package tlv
|
||||
|
||||
import "github.com/Mrs4s/MiraiGo/binary"
|
||||
|
||||
func T16(ssoVersion, appId, subAppId uint32, guid, apkId, apkVersionName, apkSign []byte) []byte {
|
||||
return binary.NewWriterF(func(w *binary.Writer) {
|
||||
w.WriteUInt16(0x16)
|
||||
w.WriteTlv(binary.NewWriterF(func(w *binary.Writer) {
|
||||
w.WriteUInt32(ssoVersion)
|
||||
w.WriteUInt32(appId)
|
||||
w.WriteUInt32(subAppId)
|
||||
w.Write(guid)
|
||||
w.WriteTlv(apkId)
|
||||
w.WriteTlv(apkVersionName)
|
||||
w.WriteTlv(apkSign)
|
||||
}))
|
||||
})
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user