klyn.CodeUnit.CodeUnit
constructor
public native CodeUnit(value: ULong)
Description

Creates a CodeUnit from an unsigned UTF-16 code-unit value.

Parameters
ParameterDescription
valueNumeric value to convert to a UTF-16 code unit.
Throws
  • TypeError if value is outside 0x0000..0xFFFF.
Example
letter = CodeUnit(ULong(Int(`Y`)))
assert letter == `Y`