Buffer.AddUtf16 Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddUtf16(IntPtr, Int32, Int32, Int32) |
Appends a range of UTF-16 encoded text to the buffer. |
| AddUtf16(ReadOnlySpan<Char>, Int32, Int32) |
Appends a range of UTF-16 encoded text to the buffer. |
| AddUtf16(IntPtr, Int32) |
Appends UTF-16 encoded text to the buffer. |
| AddUtf16(String, Int32, Int32) |
Appends a range of UTF-16 encoded text to the buffer. |
| AddUtf16(ReadOnlySpan<Char>) |
Appends UTF-16 encoded text to the buffer. |
| AddUtf16(ReadOnlySpan<Byte>) |
Appends UTF-16 encoded text to the buffer. |
| AddUtf16(String) |
Appends UTF-16 encoded text to the buffer. |
AddUtf16(IntPtr, Int32, Int32, Int32)
Appends a range of UTF-16 encoded text to the buffer.
public void AddUtf16(IntPtr text, int textLength, int itemOffset, int itemLength);
Parameters
- text
- IntPtr
A pointer to UTF-16 encoded text.
- textLength
- Int32
The length of the text in UTF-16 code units.
- itemOffset
- Int32
The offset of the first character to add to the buffer.
- itemLength
- Int32
The number of characters to add to the buffer, or -1 for the end of the text.
Applies to
AddUtf16(ReadOnlySpan<Char>, Int32, Int32)
Appends a range of UTF-16 encoded text to the buffer.
public void AddUtf16(ReadOnlySpan<char> text, int itemOffset, int itemLength);
Parameters
- text
- ReadOnlySpan<Char>
The span of UTF-16 characters to append.
- itemOffset
- Int32
The offset of the first character to add to the buffer.
- itemLength
- Int32
The number of characters to add to the buffer, or -1 for the end of the text.
Applies to
AddUtf16(String, Int32, Int32)
Appends a range of UTF-16 encoded text to the buffer.
public void AddUtf16(string text, int itemOffset, int itemLength);
Parameters
- text
- String
The UTF-16 string to append.
- itemOffset
- Int32
The offset of the first character to add to the buffer.
- itemLength
- Int32
The number of characters to add to the buffer, or -1 for the end of the text.
Applies to
AddUtf16(ReadOnlySpan<Char>)
Appends UTF-16 encoded text to the buffer.
public void AddUtf16(ReadOnlySpan<char> text);
Parameters
- text
- ReadOnlySpan<Char>
The span of UTF-16 characters to append.
Applies to
AddUtf16(ReadOnlySpan<Byte>)
Appends UTF-16 encoded text to the buffer.
public void AddUtf16(ReadOnlySpan<byte> text);
Parameters
- text
- ReadOnlySpan<Byte>
The span of UTF-16 encoded bytes to append.
Applies to
AddUtf16(String)
Appends UTF-16 encoded text to the buffer.
public void AddUtf16(string text);
Parameters
- text
- String
The UTF-16 string to append.