Decoder.GetChars Method (Byte*, Int32, Char*, 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.
Assembly: mscorlib (in mscorlib.dll)
The actual number of characters written at the location indicated by the chars parameter.
[SECURITY CRITICAL]
This API is not CLS-compliant.
Namespace:
System.Text[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
When overridden in a derived class, decodes a sequence of bytes starting at the specified byte pointer and any bytes in the internal buffer into a set of characters that are stored starting at the specified character pointer. A parameter indicates whether to clear the internal state of the decoder after the conversion.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <CLSCompliantAttribute(False)> _ <SecurityCriticalAttribute> _ Public Overridable Function GetChars ( _ bytes As Byte*, _ byteCount As Integer, _ chars As Char*, _ charCount As Integer, _ flush As Boolean _ ) As Integer
Parameters
- bytes
- Type:
System.Byte
*
A pointer to the first byte to decode.
- byteCount
- Type: System.Int32
The number of bytes to decode.
- chars
- Type:
System.Char
*
A pointer to the location at which to start writing the resulting set of characters.
- charCount
- Type: System.Int32
The maximum number of characters to write.
- flush
- Type: System.Boolean
true to clear the internal state of the decoder after the conversion; otherwise, false.
Return Value
Type: System.Int32The actual number of characters written at the location indicated by the chars parameter.
Show: