Beispiel #1
0
        internal unsafe sbyte *AllocUri(Uri value)
        {
            if (value == null)
            {
                return(AllocUri((string)null));
            }

            return(AllocUri(SvnBase.UriToString(value)));
        }
Beispiel #2
0
        internal unsafe svn_string_t AllocUnixSvnString(string value)
        {
            if (value == null)
            {
                value = "";
            }

            var pStr = (svn_string_t.__Internal *)AllocCleared(
                sizeof(svn_string_t.__Internal));

            pStr->data = new IntPtr(AllocUnixString(value));
            pStr->len  = (ulong)SvnBase.strlen((byte *)pStr->data);

            return(svn_string_t.__CreateInstance(new IntPtr(pStr)));
        }
Beispiel #3
0
        Uri IItemMarshaller <Uri> .Read(IntPtr ptr, AprPool pool)
        {
            sbyte **ppcStr = (sbyte **)ptr.ToPointer();

            return(SvnBase.Utf8_PtrToUri(*ppcStr, SvnNodeKind.Unknown));
        }
Beispiel #4
0
        string IItemMarshaller <string> .Read(IntPtr ptr, AprPool pool)
        {
            sbyte **ppcStr = (sbyte **)ptr.ToPointer();

            return(SvnBase.Utf8_PtrToString(*ppcStr));
        }
Beispiel #5
0
 static SvnHandleBase()
 {
     SvnBase.EnsureLoaded();
 }
Beispiel #6
0
        public string Read(IntPtr ptr, AprPool pool)
        {
            sbyte **ppcStr = (sbyte **)ptr;

            return(SvnBase.Utf8_PtrToString(svn_dirent_uri.svn_dirent_local_style(*ppcStr, pool.Handle)));
        }
        public string Read(IntPtr ptr, AprPool pool)
        {
            var ppcStr = (sbyte **)ptr;

            return(SvnBase.Utf8_PtrToString(*ppcStr));
        }