System.Text.SuperEncoding.GetByteCount C# (CSharp) Метод

GetByteCount() публичный Метод

public GetByteCount ( char chars, int index, int count ) : int
chars char
index int
count int
Результат int
        public override int GetByteCount(char[] chars, int index, int count)
        {
            int byteCount = 0;
            ushort u;
            char c;

            for (int i = 0; i < count; index++, byteCount++, i++)
            {
                c = chars[index];
                u = _unicodeToDbcs[c];
                if (u > 0xff)
                    byteCount++;
            }

            return byteCount;
        }