toggle menu
korge-root
5.1.0
js
switch theme
search in API
korge-core
/
korlibs.io.lang
/
JsCharset
Js
Charset
js
class
JsCharset
(
val
textEncoder
:
TextEncoder
,
val
textDecoder
:
TextDecoder
)
:
Charset
Members
Constructors
Js
Charset
Link copied to clipboard
js
constructor
(
textEncoder
:
TextEncoder
,
textDecoder
:
TextDecoder
)
Properties
name
Link copied to clipboard
js
val
name
:
String
text
Decoder
Link copied to clipboard
js
val
textDecoder
:
TextDecoder
text
Encoder
Link copied to clipboard
js
val
textEncoder
:
TextEncoder
Functions
decode
Link copied to clipboard
js
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
js
open
override
fun
encode
(
out
:
ByteArrayBuilder
,
src
:
CharSequence
,
start
:
Int
,
end
:
Int
)
equals
Link copied to clipboard
js
open
operator override
fun
equals
(
other
:
Any
?
)
:
Boolean
estimate
Number
Of
Bytes
For
Characters
Link copied to clipboard
js
open
fun
estimateNumberOfBytesForCharacters
(
nchars
:
Int
)
:
Int
estimate
Number
Of
Characters
For
Bytes
Link copied to clipboard
js
open
fun
estimateNumberOfCharactersForBytes
(
nbytes
:
Int
)
:
Int
hash
Code
Link copied to clipboard
js
open
override
fun
hashCode
(
)
:
Int
to
String
Link copied to clipboard
js
open
override
fun
toString
(
)
:
String