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 |
---|---|
![]() | chars is null. |
![]() | index or count is less than zero.-or- index and count do not denote a valid range in chars. |
![]() | A fallback occurred (see Understanding Encodings for complete explanation)-and-![]() ![]() |
See Also