mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-23 06:10:30 +08:00
Introduce val CharsetGBK
This commit is contained in:
parent
d7208a5ca7
commit
01963f3545
@ -4,6 +4,8 @@ import kotlinx.io.charsets.Charset
|
||||
import kotlinx.io.core.*
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
private val CharsetGBK = Charset.forName("GBK")
|
||||
|
||||
/**
|
||||
*
|
||||
* From: com.qq.taf.jce.JceOutputStream
|
||||
@ -11,7 +13,7 @@ import kotlin.reflect.KClass
|
||||
@Suppress("unused", "MemberVisibilityCanBePrivate")
|
||||
@UseExperimental(ExperimentalIoApi::class)
|
||||
class JceOutput(
|
||||
private val stringCharset: Charset = Charset.forName("GBK"),
|
||||
private val stringCharset: Charset = CharsetGBK,
|
||||
private val output: Output = BytePacketBuilder()
|
||||
) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user