Decoder.Convert Method (Byte*, Int32, Char*, Int32, Boolean, Int32%, Int32%, Boolean%)
This member can be used only by trusted applications. If you try to use this member in a partial-trust application, your code will throw a MethodAccessException exception. This member is security-critical, which restricts its use.
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(array<Byte, Int32, Int32, array<Char, Int32, Int32, Boolean, Int32%, Int32%, Boolean%).
Assembly: mscorlib (in mscorlib.dll)
'Declaration <CLSCompliantAttribute(False)> _ <ComVisibleAttribute(False)> _ <SecurityCriticalAttribute> _ 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 _ )
[CLSCompliantAttribute(false)] [ComVisibleAttribute(false)] [SecurityCriticalAttribute] public virtual void Convert( byte* bytes, int byteCount, char* chars, int charCount, bool flush, out int bytesUsed, out int charsUsed, out bool completed )
The address of a buffer that contains the byte sequences to convert.
The number of bytes in bytes to convert.
The address of a buffer to store the converted characters.
The maximum number of characters in chars to use in the conversion.
true to indicate no further data is to be converted; otherwise, false.
When this method returns, contains the number of bytes that were produced by the conversion. This parameter is passed uninitialized.
When this method returns, contains the number of characters from chars that were used in the conversion. This parameter is passed uninitialized.
When this method returns, contains true if all the characters specified by byteCount were converted; otherwise, false. This parameter is passed uninitialized.
Supported in: 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Supported in: Xbox 360, Windows Phone OS 7.0
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.