Convert Method (Byte*, Int32, Char*, Int32, Boolean, Int32, Int32, Boolean)
Collapse the table of content
Expand the table of content

Decoder.Convert Method (Byte*, Int32, Char*, Int32, Boolean, Int32%, Int32%, Boolean%)

For apps that target Windows Phone OS 7.0 and 7.1, do not use this member in your app. If you do, your code will throw a MethodAccessException. This member is security-critical, which restricts it to internal use by the .NET Framework for Windows Phone class library.
[SECURITY CRITICAL]

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Converts a buffer of encoded bytes to UTF-16 encoded characters and stores the result in another buffer.

This API is not CLS-compliant. The CLS-compliant alternative is Convert(Byte(), Int32, Int32, Char(), Int32, Int32, Boolean, Int32, Int32, Boolean).

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
<SecurityCriticalAttribute> _
<CLSCompliantAttribute(False)> _
Public Overridable Sub Convert ( _
	bytes As Byte*, _
	byteCount As Integer, _
	chars As Char*, _
	charCount As Integer, _
	flush As Boolean, _
	<OutAttribute> ByRef bytesUsed As Integer, _
	<OutAttribute> ByRef charsUsed As Integer, _
	<OutAttribute> ByRef completed As Boolean _
)

Parameters

bytes
Type: System.Byte *
The address of a buffer that contains the byte sequences to convert.
byteCount
Type: System.Int32
The number of bytes in bytes to convert.
chars
Type: System.Char *
The address of a buffer to store the converted characters.
charCount
Type: System.Int32
The maximum number of characters in chars to use in the conversion.
flush
Type: System.Boolean
true to indicate no further data is to be converted; otherwise, false.
bytesUsed
Type: System.Int32 %
When this method returns, contains the number of bytes that were produced by the conversion. This parameter is passed uninitialized.
charsUsed
Type: System.Int32 %
When this method returns, contains the number of characters from chars that were used in the conversion. This parameter is passed uninitialized.
completed
Type: System.Boolean %
When this method returns, contains true if all the characters specified by byteCount were converted; otherwise, false. This parameter is passed uninitialized.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft