BaseEncoding.GetMaxCharCount Method

CryptSharp

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: Int32
The maximum number of characters produced by decoding the specified number of bytes.
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionbyteCount is less than zero.
DecoderFallbackExceptionA fallback occurred (see Understanding Encodings for complete explanation)-and-DecoderFallback is set to DecoderExceptionFallback.
See Also

Reference