BitMiracle.Tiff2Pdf.T2P.strlen C# (CSharp) Method

strlen() private static method

private static strlen ( byte buffer ) : int
buffer byte
return int
        private static int strlen(byte[] buffer)
        {
            for (int i = 0; i < buffer.Length; i++)
            {
                if (buffer[i] == 0)
                    return (i + 1);
            }

            return buffer.Length;
        }