unsafe static internal Url ToUrl(UrlStruct url, char *_base) { var _url = new Url() { startIndex = (int)(url.startPtr - _base), length = url.length, }; return(_url); }
unsafe internal UrlStruct ToUrlStruct(char *_base) { var url = new UrlStruct() { startPtr = _base + startIndex, length = length, }; return(url); }