System.Xml.XmlConverter.ToCharsD7 C# (CSharp) Méthode

ToCharsD7() private static méthode

private static ToCharsD7 ( int value, byte chars, int offset ) : int
value int
chars byte
offset int
Résultat int
        private static int ToCharsD7(int value, byte[] chars, int offset)
        {
            DiagnosticUtility.DebugAssert(value >= 0 && value < 10000000, "");
            int zeroCount = 7 - ToCharsR(value, chars, offset + 7);
            for (int i = 0; i < zeroCount; i++)
                chars[offset + i] = (byte)'0';
            int count = 7;
            while (count > 0 && chars[offset + count - 1] == '0')
                count--;
            return count;
        }