LuaInterface.Lua_Debug.GetShortSrcLen C# (CSharp) Method

GetShortSrcLen() private method

private GetShortSrcLen ( byte str ) : int
str byte
return int
        int GetShortSrcLen(byte[] str)
        {
            int i = 0;

            for (; i < 128; i++)
            {
                if (str[i] == '\0')
                {
                    return i;
                }
            }

            return i;
        }