Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
71875269
Commit
71875269
authored
Jan 06, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make OutgoingPacket Not extending Packet
parent
a63c925c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/OutgoingPacketAndroid.kt
...qandroid/network/protocol/packet/OutgoingPacketAndroid.kt
+1
-2
mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/OutgoingPacket.kt
...in/net.mamoe.mirai.timpc/network/packet/OutgoingPacket.kt
+1
-1
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/OutgoingPacketAndroid.kt
View file @
71875269
...
@@ -5,7 +5,6 @@ import kotlinx.io.core.BytePacketBuilder
...
@@ -5,7 +5,6 @@ import kotlinx.io.core.BytePacketBuilder
import
kotlinx.io.core.ByteReadPacket
import
kotlinx.io.core.ByteReadPacket
import
kotlinx.io.core.buildPacket
import
kotlinx.io.core.buildPacket
import
kotlinx.io.core.writeFully
import
kotlinx.io.core.writeFully
import
net.mamoe.mirai.data.Packet
import
net.mamoe.mirai.qqandroid.network.QQAndroidClient
import
net.mamoe.mirai.qqandroid.network.QQAndroidClient
import
net.mamoe.mirai.qqandroid.network.protocol.packet.login.PacketId
import
net.mamoe.mirai.qqandroid.network.protocol.packet.login.PacketId
import
net.mamoe.mirai.qqandroid.utils.ECDH
import
net.mamoe.mirai.qqandroid.utils.ECDH
...
@@ -24,7 +23,7 @@ internal class OutgoingPacket constructor(
...
@@ -24,7 +23,7 @@ internal class OutgoingPacket constructor(
val
packetId
:
PacketId
,
val
packetId
:
PacketId
,
val
sequenceId
:
Short
,
val
sequenceId
:
Short
,
val
delegate
:
ByteReadPacket
val
delegate
:
ByteReadPacket
)
:
Packet
{
)
{
val
name
:
String
by
lazy
{
val
name
:
String
by
lazy
{
name
?:
packetId
.
toString
()
name
?:
packetId
.
toString
()
}
}
...
...
mirai-core-timpc/src/commonMain/kotlin/net.mamoe.mirai.timpc/network/packet/OutgoingPacket.kt
View file @
71875269
...
@@ -25,7 +25,7 @@ class OutgoingPacket(
...
@@ -25,7 +25,7 @@ class OutgoingPacket(
val
packetId
:
PacketId
,
val
packetId
:
PacketId
,
val
sequenceId
:
UShort
,
val
sequenceId
:
UShort
,
val
delegate
:
ByteReadPacket
val
delegate
:
ByteReadPacket
)
:
Packet
{
)
{
val
name
:
String
by
lazy
{
val
name
:
String
by
lazy
{
name
?:
packetId
.
toString
()
name
?:
packetId
.
toString
()
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment