Exemple #1
0
        unsafe static internal Url ToUrl(UrlStruct url, char *_base)
        {
            var _url = new Url()
            {
                startIndex = (int)(url.startPtr - _base),
                length     = url.length,
            };

            return(_url);
        }
Exemple #2
0
        unsafe internal UrlStruct ToUrlStruct(char *_base)
        {
            var url = new UrlStruct()
            {
                startPtr = _base + startIndex,
                length   = length,
            };

            return(url);
        }