toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.lang
/
Charset
Charset
abstract
class
Charset
(
val
name
:
String
)
Inheritors
UTC8CharsetBase
BaseSingleByteCharset
UTF16Charset
JsCharset
JvmCharset
Members
Constructors
Charset
Link copied to clipboard
constructor
(
name
:
String
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
name
Link copied to clipboard
val
name
:
String
Functions
decode
Link copied to clipboard
abstract
fun
decode
(
out
:
StringBuilder
,
src
:
ByteArray
,
start
:
Int
=
0
,
end
:
Int
=
src.size
)
:
Int
Decodes the
src
start
-
end
range using this
Charset
and writes the result into the
out
.
encode
Link copied to clipboard
abstract
fun
encode
(
out
:
ByteArrayBuilder
,
src
:
CharSequence
,
start
:
Int
=
0
,
end
:
Int
=
src.length
)
estimate
Number
Of
Bytes
For
Characters
Link copied to clipboard
open
fun
estimateNumberOfBytesForCharacters
(
nchars
:
Int
)
:
Int
estimate
Number
Of
Characters
For
Bytes
Link copied to clipboard
open
fun
estimateNumberOfCharactersForBytes
(
nbytes
:
Int
)
:
Int