本文整理汇总了C#中union_p4类的典型用法代码示例。如果您正苦于以下问题:C# union_p4类的具体用法?C# union_p4怎么用?C# union_p4使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
union_p4类属于命名空间,在下文中一共展示了union_p4类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: sqlite3VdbeAddOp4
static int sqlite3VdbeAddOp4( Vdbe p, int op, int p1, int p2, int p3, byte[] pP4, int p4type )
{
Debug.Assert( op == OP_Null || pP4 != null );
union_p4 _p4 = new union_p4();
_p4.z = Encoding.UTF8.GetString( pP4, 0, pP4.Length );
int addr = sqlite3VdbeAddOp3( p, op, p1, p2, p3 );
sqlite3VdbeChangeP4( p, addr, _p4, p4type );
return addr;
}
示例2: sqlite3VdbeChangeP4
static void sqlite3VdbeChangeP4( Vdbe p, int addr, string z, int n )
{
union_p4 _p4 = new union_p4();
if ( n > 0 && n <= z.Length )
_p4.z = z.Substring( 0, n );
else
_p4.z = z;
sqlite3VdbeChangeP4( p, addr, _p4, n );
}
示例3: sqlite3VdbeAddOp4Int
/*
** Add an opcode that includes the p4 value as an integer.
*/
static int sqlite3VdbeAddOp4Int(
Vdbe p, /* Add the opcode to this VM */
int op, /* The new opcode */
int p1, /* The P1 operand */
int p2, /* The P2 operand */
int p3, /* The P3 operand */
int p4 /* The P4 operand as an integer */
)
{
union_p4 _p4 = new union_p4();
_p4.i = p4;
int addr = sqlite3VdbeAddOp3( p, op, p1, p2, p3 );
sqlite3VdbeChangeP4( p, addr, _p4, P4_INT32 );
return addr;
}
示例4: sqlite3VdbeAddOp4
//CollSeq
private static int sqlite3VdbeAddOp4(Vdbe p, int op, int p1, int p2, int p3, CollSeq pP4, int p4type)
{
union_p4 _p4 = new union_p4();
_p4.pColl = pP4;
int addr = sqlite3VdbeAddOp3(p, op, p1, p2, p3);
sqlite3VdbeChangeP4(p, addr, _p4, p4type);
return addr;
}