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
0b93f126
Commit
0b93f126
authored
Nov 16, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more debugging identities
parent
54a0967e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/internal/HexComparator.kt
...in/kotlin/net.mamoe.mirai/utils/internal/HexComparator.kt
+11
-5
No files found.
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/internal/HexComparator.kt
View file @
0b93f126
@
file
:
Suppress
(
"ObjectPropertyName"
,
"MayBeConstant"
,
"NonAsciiCharacters"
,
"SpellCheckingInspection"
,
"unused"
)
@
file
:
Suppress
(
"ObjectPropertyName"
,
"MayBeConstant"
,
"NonAsciiCharacters"
,
"SpellCheckingInspection"
,
"unused"
,
"EXPERIMENTAL_UNSIGNED_LITERALS"
)
package
net.mamoe.mirai.utils.internal
import
kotlinx.io.core.toByteArray
import
net.mamoe.mirai.network.protocol.tim.TIMProtocol
import
net.mamoe.mirai.utils.MiraiInternalAPI
import
net.mamoe.mirai.utils.io.hexToBytes
import
net.mamoe.mirai.utils.io.read
import
net.mamoe.mirai.utils.io.readUVarInt
import
net.mamoe.mirai.utils.io.toUHexString
import
kotlin.math.max
import
kotlin.reflect.KProperty0
...
...
@@ -46,9 +49,10 @@ private fun LinkedHashSet<NamedHexElement>.initConstFileds() {
private
object
TestConsts
{
val
NIU_BI
=
"牛逼"
.
toByteArray
().
toUHexString
()
val
_1994701021
=
1994701021
.
toUHexString
(
" "
)
val
_1040400290
=
1040400290
.
toUHexString
(
" "
)
val
_580266363
=
580266363
.
toUHexString
(
" "
)
val
_1994701021
=
1994701021
u
.
toUHexString
(
" "
)
val
_1040400290
=
1040400290
u
.
toUHexString
(
" "
)
val
_580266363
=
580266363
u
.
toUHexString
(
" "
)
val
_761025446
=
761025446
u
.
toUHexString
()
val
_1040400290_
=
"3E 03 3F A2"
val
_1994701021_
=
"76 E4 B8 DD"
...
...
@@ -68,7 +72,8 @@ private object TestConsts {
val
varint580266363
=
"FB D2 D8 94 02"
val
varint1040400290
=
"A2 FF 8C F0 03"
var
varint1994701021
=
"DD F1 92 B7 07"
val
varint1994701021
=
"DD F1 92 B7 07"
val
varint761025446
=
761025446
u
.
toUHexString
().
hexToBytes
().
read
{
readUVarInt
()
}.
toUHexString
()
}
@Suppress
(
"SpellCheckingInspection"
)
...
...
@@ -76,6 +81,7 @@ private object PacketIds {
val
heartbeat
=
"00 58"
val
friendmsgsend
=
"00 CD"
val
friendmsgevent
=
"00 CE"
val
groupmsg
=
"00 02"
}
/**
...
...
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