AlbLib.Texts.VisualEncoding.GetChars C# (CSharp) Méthode

GetChars() public méthode

public GetChars ( byte bytes, int byteIndex, int byteCount, char chars, int charIndex ) : int
bytes byte
byteIndex int
byteCount int
chars char
charIndex int
Résultat int
        public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
        {
            for(int i = 0, ich = 0; i < byteCount; i++, ich++)
            {
                byte b = bytes[i+byteIndex];
                char ch;
                if(!b2c.TryGetValue(b, out ch))
                {
                    ich -= 1;
                    continue;
                }
                chars[ich+charIndex] = ch;
            }
            return byteCount;
        }