Edit

Share via


Buffer.AddUtf8 Method

Definition

Overloads

Name Description
AddUtf8(ReadOnlySpan<Byte>, Int32, Int32)

Appends a range of UTF-8 encoded text to the buffer.

AddUtf8(Byte[])

Appends the specified text bytes to the buffer.

AddUtf8(ReadOnlySpan<Byte>)

Appends UTF-8 encoded text to the buffer.

AddUtf8(String)

Appends the specified text to the buffer.

AddUtf8(IntPtr, Int32)

Appends UTF-8 encoded text to the buffer.

AddUtf8(IntPtr, Int32, Int32, Int32)

Appends a range of UTF-8 encoded text to the buffer.

AddUtf8(ReadOnlySpan<Byte>, Int32, Int32)

Appends a range of UTF-8 encoded text to the buffer.

public void AddUtf8(ReadOnlySpan<byte> text, int itemOffset, int itemLength);

Parameters

text
ReadOnlySpan<Byte>

The span of UTF-8 encoded bytes to append.

itemOffset
Int32

The offset of the first byte to add to the buffer.

itemLength
Int32

The number of bytes to add to the buffer, or -1 for the end of the text.

Applies to

AddUtf8(Byte[])

Appends the specified text bytes to the buffer.

public void AddUtf8(byte[] bytes);

Parameters

bytes
Byte[]

The array of UTF-8 character bytes to append.

Applies to

AddUtf8(ReadOnlySpan<Byte>)

Appends UTF-8 encoded text to the buffer.

public void AddUtf8(ReadOnlySpan<byte> text);

Parameters

text
ReadOnlySpan<Byte>

The span of UTF-8 encoded bytes to append.

Applies to

AddUtf8(String)

Appends the specified text to the buffer.

public void AddUtf8(string utf8text);

Parameters

utf8text
String

The array of UTF-8 characters to append.

Applies to

AddUtf8(IntPtr, Int32)

Appends UTF-8 encoded text to the buffer.

public void AddUtf8(IntPtr text, int textLength);

Parameters

text
IntPtr

A pointer to UTF-8 encoded text.

textLength
Int32

The length of the text in bytes.

Applies to

AddUtf8(IntPtr, Int32, Int32, Int32)

Appends a range of UTF-8 encoded text to the buffer.

public void AddUtf8(IntPtr text, int textLength, int itemOffset, int itemLength);

Parameters

text
IntPtr

A pointer to UTF-8 encoded text.

textLength
Int32

The length of the text in bytes.

itemOffset
Int32

The offset of the first byte to add to the buffer.

itemLength
Int32

The number of bytes to add to the buffer, or -1 for the end of the text.

Applies to