System.Text.UTF8Encoding.GetCharCount C# (CSharp) Method

GetCharCount() private method

private GetCharCount ( byte bytes, int count ) : int
bytes byte
count int
return int
        public unsafe override int GetCharCount(byte* bytes, int count)
        {
            throw null;
        }

Same methods

UTF8Encoding::GetCharCount ( byte bytes, int index, int count ) : int

Usage Example

 public void PosTest2()
 {
     Byte[] bytes = new Byte[] { };
     UTF8Encoding utf8 = new UTF8Encoding();
     int charCount = utf8.GetCharCount(bytes, 0, 0);
     Assert.Equal(0, charCount);
 }
All Usage Examples Of System.Text.UTF8Encoding::GetCharCount