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