Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
RTAkland committed Jan 4, 2025
1 parent 0af9d28 commit 111b18e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 2 files
+4 −0 README.md
+72 −0 docs/kwsify/kwsify.md
7 changes: 0 additions & 7 deletions src/main/kotlin/cn/rtast/kwsify/entity/OPCodePacket.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,12 @@ data class OPCodePacket(val op: Int) {
val buffer = ByteBuffer.allocate(4)
return buffer.apply {
putInt(op)
// putInt(channel.toByteArray().size)
// put(channel.toByteArray())
}.array()
}

companion object {
fun fromByteArray(buffer: ByteBuffer): OPCodePacket {
val op = buffer.int
// val channelSize = buffer.int
// val channelBytes = ByteArray(channelSize).apply {
// buffer.get(this)
// }
// val channel = String(channelBytes)
return OPCodePacket(op)
}
}
Expand Down

0 comments on commit 111b18e

Please sign in to comment.