BaseEncodingGetMaxCharCount Method | CryptSharp |
When overridden in a derived class, calculates the maximum number of characters produced by decoding the specified number of bytes.
Namespace: CryptSharp.Utility
Assembly: CryptSharp (in CryptSharp.dll) Version: 2.1.0.0
Syntax
public override int GetMaxCharCount( int byteCount )
Public Overrides Function GetMaxCharCount ( byteCount As Integer ) As Integer
public: virtual int GetMaxCharCount( int byteCount ) override
abstract GetMaxCharCount : byteCount : int -> int override GetMaxCharCount : byteCount : int -> int
Parameters
- byteCount
- Type: SystemInt32
The number of bytes to decode.
Return Value
Type: Int32The maximum number of characters produced by decoding the specified number of bytes.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | byteCount is less than zero. |
DecoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback. |
See Also