Method Append
Append(byte*, ref ushort, ushort, byte*, ushort)
Appends UTF-8 text to a buffer.
Declaration
public static CopyError Append(byte* dest, ref ushort destLength, ushort destUTF8MaxLengthInBytes, byte* src, ushort srcLength)
Parameters
Type | Name | Description |
---|---|---|
byte* | dest | The destination buffer. |
ushort | destLength | Reference to the destination buffer's length in bytes before the append. Will be assigned the number of bytes appended. |
ushort | destUTF8MaxLengthInBytes | The destination buffer's length in bytes. Data will not be appended past this length. |
byte* | src | The source buffer. |
ushort | srcLength | The number of bytes to read from the source. |
Returns
Type | Description |
---|---|
Copy |
None if the append fully completes. Otherwise, returns Truncation. |
Remarks
Assumes the source data is valid UTF-8.
Append(byte*, ref ushort, ushort, char*, int)
Appends UCS-2 text to a buffer, encoded as UTF-8.
Declaration
public static CopyError Append(byte* dest, ref ushort destLength, ushort destUTF8MaxLengthInBytes, char* src, int srcLength)
Parameters
Type | Name | Description |
---|---|---|
byte* | dest | The destination buffer. |
ushort | destLength | Reference to the destination buffer's length in bytes before the append. Will be assigned the number of bytes appended. |
ushort | destUTF8MaxLengthInBytes | The destination buffer's length in bytes. Data will not be appended past this length. |
char* | src | The source buffer. |
int | srcLength | The number of chars to read from the source. |
Returns
Type | Description |
---|---|
Copy |
None if the append fully completes. Otherwise, returns Truncation. |
Remarks
Assumes the source data is valid UCS-2.
Append(char*, ref ushort, ushort, byte*, ushort)
Appends UTF-8 text to a buffer, encoded as UCS-2.
Declaration
public static CopyError Append(char* dest, ref ushort destLength, ushort destUCS2MaxLengthInChars, byte* src, ushort srcLength)
Parameters
Type | Name | Description |
---|---|---|
char* | dest | The destination buffer. |
ushort | destLength | Reference to the destination buffer's length in chars before the append. Will be assigned the number of chars appended. |
ushort | destUCS2MaxLengthInChars | The destination buffer's length in chars. Data will not be appended past this length. |
byte* | src | The source buffer. |
ushort | srcLength | The number of bytes to read from the source. |
Returns
Type | Description |
---|---|
Copy |
None if the append fully completes. Otherwise, returns Truncation. |
Remarks
Assumes the source data is valid UTF-8.