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;
        }