RichTextKit v0.1

Utf32Buffer.Add Method

Assembly: Topten.RichTextKit.dll
Namespace: Topten.RichTextKit.Utils
Declaring Type: Utf32Buffer

Overloads

Add(string)

Adds text to this buffer, converting from UTF-16 to UTF-32 and normalizing line endings to \n.

Add(Slice<int>)
Add(int, bool)

Adds to the buffer, returning a slice of requested size

Add(string)

Adds text to this buffer, converting from UTF-16 to UTF-32 and normalizing line endings to \n.

public Slice<int> Add(string str);

Parameters

string str

The string of text to be added to the buffer

Returns

Slice<int>

A slice representing the added UTF-32 data.

Add(Slice<int>)

public Slice<int> Add(Slice<int> slice);

Parameters

Slice<int> slice

Returns

Slice<int>

Add(int, bool)

Adds to the buffer, returning a slice of requested size

public Slice<int> Add(int length, bool clear = true);

Parameters

int length

Number of elements to add

bool clear = true

True to clear the content; otherwise false

Returns

Slice<int>

A slice representing the allocated elements.