private GetByteCount ( char chars, int count ) : int | ||
chars | char | |
count | int | |
return | int |
public unsafe override int GetByteCount(char* chars, int count)
{
// Validate Parameters
if (chars == null)
throw new ArgumentNullException(nameof(chars), SR.ArgumentNull_Array);
if (count < 0)
throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum);
Contract.EndContractBlock();
// Call it with empty encoder
return GetByteCount(chars, count, null);
}
EncodingNLS::GetByteCount ( String s ) : int | |
EncodingNLS::GetByteCount ( char chars, int count, |
|
EncodingNLS::GetByteCount ( char chars, int index, int count ) : int |
public override unsafe int GetByteCount(char *chars, int count, bool flush) { if (chars is null) { throw new ArgumentNullException(nameof(chars)); } if (count < 0) { throw new ArgumentOutOfRangeException(nameof(count), SR.ArgumentOutOfRange_NeedNonNegNum); } m_mustFlush = flush; m_throwOnOverflow = true; return(m_encoding.GetByteCount(chars, count, this)); }