public void CAlloc() { AprPool p = new AprPool(); Assert.IsTrue(p.IsNull, "#F01"); p = AprPool.Create(); Assert.IsFalse(p.IsNull, "#F02"); IntPtr m = p.CAlloc(256); Assert.IsTrue(m.ToInt32() != 0, "#F03"); Assert.IsTrue(Marshal.ReadInt32(m) == 0, "#F04"); p.Destroy(); Assert.IsTrue(p.IsNull, "#F04"); }
public void CAllocLoop() { AprPool p = new AprPool(); Assert.IsTrue(p.IsNull, "#H000001"); p = AprPool.Create(); Assert.IsFalse(p.IsNull, "#H000002"); for (int i = 24; i < 4096; i += 24) { IntPtr m = p.CAlloc(i); Assert.IsTrue(m.ToInt32() != 0, String.Format("#H{0,6}a", i)); Assert.IsTrue(Marshal.ReadInt32(m) == 0, String.Format("#H{0,6}b", i)); Assert.IsTrue(p.Alloc(i).ToInt32() != 0, String.Format("#H{0,6}c", i)); } p.Destroy(); Assert.IsTrue(p.IsNull, "#H000004"); }
public SvnOptRevision(long revDate, AprPool pool) { mOptRevision = (svn_opt_revision_t *)pool.CAlloc(sizeof(svn_opt_revision_t)); Date = revDate; }
public SvnOptRevision(SvnRevision rev, AprPool pool) { mOptRevision = (svn_opt_revision_t *)pool.CAlloc(sizeof(svn_opt_revision_t)); Revision = rev; }
public SvnOptRevision(Svn.Revision revKind, AprPool pool) { mOptRevision = (svn_opt_revision_t *)pool.CAlloc(sizeof(svn_opt_revision_t)); Kind = revKind; }
public SvnOptRevision(int revNum, AprPool pool) { mOptRevision = (svn_opt_revision_t *)pool.CAlloc(sizeof(svn_opt_revision_t)); Number = revNum; }
public SvnOptRevision(AprPool pool) { mOptRevision = (svn_opt_revision_t *)pool.CAlloc(sizeof(svn_opt_revision_t)); }
public static SvnAuthCredSslClientCertPw Alloc(AprPool pool) { return(new SvnAuthCredSslClientCertPw((svn_auth_cred_ssl_client_cert_pw_t *) pool.CAlloc(sizeof(svn_auth_cred_ssl_client_cert_pw_t)))); }
public static SvnAuthCredSslServerTrust Alloc(AprPool pool) { return(new SvnAuthCredSslServerTrust((svn_auth_cred_ssl_server_trust_t *) pool.CAlloc(sizeof(svn_auth_cred_ssl_server_trust_t)))); }
public static SvnAuthCredUsername Alloc(AprPool pool) { return(new SvnAuthCredUsername((svn_auth_cred_username_t *) pool.CAlloc(sizeof(svn_auth_cred_username_t)))); }
public static SvnAuthCredSimple Alloc(AprPool pool) { return(new SvnAuthCredSimple((svn_auth_cred_simple_t *) pool.CAlloc(sizeof(svn_auth_cred_simple_t)))); }