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