klyn.StringBuilder.StringBuilder
constructor
public StringBuilder(size as ULong = 256)
Description

Creates a new builder.

Parameters
ParameterDescription
sizeInitial reserved capacity in UTF-16 CodeUnit values. The logical size remains zero; supplementary Char values use two units.
Throws
  • OutOfMemoryError if the requested storage cannot be allocated.
Example
builder = StringBuilder(64u)
builder.append("Klyn")
print(builder.toString())