Decoder.GetChars Method (Byte*, Int32, Char*, 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.
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.
This API is not CLS-compliant.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <CLSCompliantAttribute(False)> _ <ComVisibleAttribute(False)> _ <SecurityCriticalAttribute> _ Public Overridable Function GetChars ( _ bytes As Byte*, _ byteCount As Integer, _ chars As Char*, _ charCount As Integer, _ flush As Boolean _ ) As Integer
[CLSCompliantAttribute(false)] [ComVisibleAttribute(false)] [SecurityCriticalAttribute] public virtual int GetChars( byte* bytes, int byteCount, char* chars, int charCount, bool flush )
A pointer to the first byte to decode.
The number of bytes to decode.
A pointer to the location at which to start writing the resulting set of characters.
The maximum number of characters to write.
true to clear the internal state of the decoder after the conversion; otherwise, false.
The actual number of characters written at the location indicated by the chars parameter.
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.