Class
StringBuilder
class StringBuilder
Module: System.Text
Assembly: System.Runtime.dll
Source file: StringBuilder.rvn
Inheritance: Object → StringBuilder
Builds immutable UTF-8 strings within an explicit byte limit. Not thread-safe.
Constructors
2 items
StringBuilder()
Creates an empty builder with a 65536-byte limit.
StringBuilder(maxUtf8Bytes: int)
Creates an empty builder; maxUtf8Bytes must be between zero and 65536.
Properties
2 items
MaxUtf8Bytes: int
Maximum permitted UTF-8 byte count.
Utf8ByteCount: int
Number of UTF-8 bytes currently stored, rather than graphemes or UTF-16 units.
Methods
8 items
Append(text: string) -> StringBuilder
Appends text and returns this builder. A limit fault leaves content unchanged.
AppendLine() -> StringBuilder
Appends LF and returns this builder.
AppendLine(text: string) -> StringBuilder
Appends text and LF atomically. HTTP framing must use explicit CRLF instead.
Clear() -> StringBuilder
Releases retained text and resets content, preserving capacity and the byte limit.
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns a cached immutable snapshot, independent of subsequent mutations.
Overrides Object.ToString