When overridden in a derived class, calculates the number of bytes produced by encoding a set of characters from the specified character array.
Namespace: CryptSharp.UtilityAssembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax
Parameters
- chars
- Type: System Char
The character array containing the set of characters to encode.
- index
- Type: System Int32
The index of the first character to encode.
- count
- Type: System Int32
The number of characters to encode.
Return Value
The number of bytes produced by encoding the specified characters.Exceptions
Exception | Condition |
---|---|
System ArgumentNullException | chars is null. |
System ArgumentOutOfRangeException | index or count is less than zero.-or- index and count do not denote a valid range in chars. |
System.Text EncoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation)-and-EncoderFallback is set to EncoderExceptionFallback. |
See Also