mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
19 lines
484 B
Go
19 lines
484 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)
|
|
pos := w.FillUInt16()
|
|
w.WriteUInt32(ssoVersion)
|
|
w.WriteUInt32(appId)
|
|
w.WriteUInt32(subAppId)
|
|
w.Write(guid)
|
|
w.WriteBytesShort(apkId)
|
|
w.WriteBytesShort(apkVersionName)
|
|
w.WriteBytesShort(apkSign)
|
|
w.WriteUInt16At(pos, uint16(w.Len()-4))
|
|
})
|
|
}
|