toggle menu
korge-root
5.1.0
common
switch theme
search in API
korge-core
/
korlibs.io.lang
/
SingleByteCharset
Single
Byte
Charset
open
class
SingleByteCharset
(
val
name
:
String
,
val
conv
:
String
)
:
BaseSingleByteCharset
Inheritors
ISO_8859_1
ASCII
Members
Constructors
Single
Byte
Charset
Link copied to clipboard
constructor
(
name
:
String
,
conv
:
String
)
Properties
conv
Link copied to clipboard
val
conv
:
String
name
Link copied to clipboard
val
name
:
String
v
Link copied to clipboard
val
v
:
IntIntMap
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