mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
19 lines
494 B
Go
19 lines
494 B
Go
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.WriteBytesShort(binary.NewWriterF(func(w *binary.Writer) {
|
|
w.WriteUInt32(ssoVersion)
|
|
w.WriteUInt32(appId)
|
|
w.WriteUInt32(subAppId)
|
|
w.Write(guid)
|
|
w.WriteBytesShort(apkId)
|
|
w.WriteBytesShort(apkVersionName)
|
|
w.WriteBytesShort(apkSign)
|
|
}))
|
|
})
|
|
}
|