1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-24 20:43:33 +08:00

Update Tlv.kt ()

fix code format
This commit is contained in:
类C语言是一家 2020-09-15 12:52:35 +08:00 committed by GitHub
parent c14eef2890
commit 9f0f8c40aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -638,13 +638,13 @@ internal fun BytePacketBuilder.t202(
internal fun BytePacketBuilder.t177(
buildTime: Long = 1571193922L, // wtLogin BuildTime
BuildVersion: String = "6.0.0.2413" // wtLogin SDK Version
buildVersion: String = "6.0.0.2413" // wtLogin SDK Version
) {
writeShort(0x177)
writeShortLVPacket {
writeByte(1)
writeInt(buildTime.toInt())
writeShortLVString(BuildVersion)
writeShortLVString(buildVersion)
} shouldEqualsTo 0x11
}
@ -702,4 +702,4 @@ private inline fun Boolean.toInt(): Int = if (this) 1 else 0
// noinline: wrong exception stacktrace reported
private infix fun Int.shouldEqualsTo(int: Int) = check(this == int) { "Required $int, but found $this" }
private infix fun ByteArray.requireSize(exactSize: Int) = check(this.size == exactSize) { "Required size $exactSize, but found ${this.size}" }
private infix fun ByteArray.requireSize(exactSize: Int) = check(this.size == exactSize) { "Required size $exactSize, but found ${this.size}" }