Encoder.GetByteCount Method (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 number of bytes produced by encoding the specified characters and any characters in the internal buffer.
[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, calculates the number of bytes produced by encoding a set of characters starting at the specified character pointer. A parameter indicates whether to clear the internal state of the encoder after the calculation.
Assembly: mscorlib (in mscorlib.dll)
'Declaration <CLSCompliantAttribute(False)> _ <SecurityCriticalAttribute> _ Public Overridable Function GetByteCount ( _ chars As Char*, _ count As Integer, _ flush As Boolean _ ) As Integer
Parameters
- chars
- Type:
System.Char
*
A pointer to the first character to encode.
- count
- Type: System.Int32
The number of characters to encode.
- flush
- Type: System.Boolean
true to simulate clearing the internal state of the encoder after the calculation; otherwise, false.
Return Value
Type: System.Int32The number of bytes produced by encoding the specified characters and any characters in the internal buffer.
Show: