diff --git a/docs b/docs index 589450b..452e98e 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 589450b3be7e9dc5fe15d1907829af641545fe37 +Subproject commit 452e98e4b19a179181812890f90eebbf51ba7c3e diff --git a/src/main/kotlin/cn/rtast/kwsify/entity/OPCodePacket.kt b/src/main/kotlin/cn/rtast/kwsify/entity/OPCodePacket.kt index 2067442..c35f84b 100644 --- a/src/main/kotlin/cn/rtast/kwsify/entity/OPCodePacket.kt +++ b/src/main/kotlin/cn/rtast/kwsify/entity/OPCodePacket.kt @@ -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) } }