本文整理汇总了C#中OciHandle.PtrToString方法的典型用法代码示例。如果您正苦于以下问题:C# OciHandle.PtrToString方法的具体用法?C# OciHandle.PtrToString怎么用?C# OciHandle.PtrToString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OciHandle
的用法示例。
在下文中一共展示了OciHandle.PtrToString方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OCIAttrGet
internal static int OCIAttrGet(OciHandle trgthndlp, ref IntPtr attributep, ref uint sizep, OCI.ATTR attrtype, OciHandle errhp)
{
int num = System.Data.Common.UnsafeNativeMethods.OCIAttrGet(trgthndlp, trgthndlp.HandleType, ref attributep, ref sizep, attrtype, errhp);
if (Bid.AdvancedOn)
{
if (OCI.ATTR.OCI_ATTR_SQLCODE == attrtype)
{
Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET> trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=%-20ls sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, trgthndlp.PtrToString(attributep, (int) sizep), sizep, num);
return num;
}
Bid.Trace("<oc.OCIAttrGet|ADV|OCI|RET> trgthndlp=0x%-07Ix trghndltyp=%-18ls attrtype=%-22ls errhp=0x%-07Ix attributep=0x%-18Ix sizep=%2d rc=%d\n", trgthndlp, trgthndlp.HandleType, attrtype, errhp, attributep, sizep, num);
}
return num;
}
示例2: OCIServerVersion
internal static int OCIServerVersion(OciHandle hndlp, OciHandle errhp, NativeBuffer bufp)
{
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCIServerVersion|ADV|OCI> hndlp=0x%-07Ix errhp=0x%-07Ix bufp=0x%-07Ix bufsz=%d hndltype=%d{OCI.HTYPE}\n", OciHandle.HandleValueToTrace(hndlp), OciHandle.HandleValueToTrace(errhp), NativeBuffer.HandleValueToTrace(bufp), bufp.Length, (int) hndlp.HandleType);
}
int num = System.Data.Common.UnsafeNativeMethods.OCIServerVersion(hndlp, errhp, bufp, (uint) bufp.Length, (byte) hndlp.HandleType);
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCIServerVersion|ADV|OCI|RET> rc=%d\n%ls\n\n", num, hndlp.PtrToString(bufp));
}
return num;
}
示例3: OCILobFileGetName
internal static int OCILobFileGetName(OciHandle envhp, OciHandle errhp, OciHandle filep, IntPtr dir_alias, ref ushort d_length, IntPtr filename, ref ushort f_length)
{
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCILobFileGetName|ADV|OCI> envhp=0x%-07Ix errhp=0x%-07Ix filep=%Id\n", OciHandle.HandleValueToTrace(envhp), OciHandle.HandleValueToTrace(errhp), OciHandle.HandleValueToTrace(filep));
}
int num = System.Data.Common.UnsafeNativeMethods.OCILobFileGetName(envhp, errhp, filep, dir_alias, ref d_length, filename, ref f_length);
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCILobFileGetName|ADV|OCI|RET> rc=%d, dir_alias='%ls', d_lenght=%d, filename='%ls', f_length=%d\n", num, envhp.PtrToString(dir_alias, d_length), d_length, envhp.PtrToString(filename, f_length), f_length);
}
return num;
}
示例4: OCIErrorGet
internal static int OCIErrorGet(OciHandle hndlp, int recordno, out int errcodep, NativeBuffer bufp)
{
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCIErrorGet|ADV|OCI> hndlp=0x%-07Ix recordno=%d sqlstate=0x%-07Ix bufp=0x%-07Ix bufsiz=%d type=%d{OCI.HTYPE}\n", OciHandle.HandleValueToTrace(hndlp), recordno, IntPtr.Zero, NativeBuffer.HandleValueToTrace(bufp), bufp.Length, (int) hndlp.HandleType);
}
int num = System.Data.Common.UnsafeNativeMethods.OCIErrorGet(hndlp, (uint) recordno, IntPtr.Zero, out errcodep, bufp, (uint) bufp.Length, hndlp.HandleType);
if (Bid.AdvancedOn)
{
Bid.Trace("<oc.OCIErrorGet|ADV|OCI|RET> errcodep=%d rc=%d\n\t%ls\n\n", errcodep, num, hndlp.PtrToString(bufp));
}
return num;
}