Commit 01963f35 authored by Him188's avatar Him188

Introduce `val CharsetGBK`

parent d7208a5c
...@@ -4,6 +4,8 @@ import kotlinx.io.charsets.Charset ...@@ -4,6 +4,8 @@ import kotlinx.io.charsets.Charset
import kotlinx.io.core.* import kotlinx.io.core.*
import kotlin.reflect.KClass import kotlin.reflect.KClass
private val CharsetGBK = Charset.forName("GBK")
/** /**
* *
* From: com.qq.taf.jce.JceOutputStream * From: com.qq.taf.jce.JceOutputStream
...@@ -11,7 +13,7 @@ import kotlin.reflect.KClass ...@@ -11,7 +13,7 @@ import kotlin.reflect.KClass
@Suppress("unused", "MemberVisibilityCanBePrivate") @Suppress("unused", "MemberVisibilityCanBePrivate")
@UseExperimental(ExperimentalIoApi::class) @UseExperimental(ExperimentalIoApi::class)
class JceOutput( class JceOutput(
private val stringCharset: Charset = Charset.forName("GBK"), private val stringCharset: Charset = CharsetGBK,
private val output: Output = BytePacketBuilder() private val output: Output = BytePacketBuilder()
) { ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment