本文整理汇总了C#中IMySqlValue.ReadValue方法的典型用法代码示例。如果您正苦于以下问题:C# IMySqlValue.ReadValue方法的具体用法?C# IMySqlValue.ReadValue怎么用?C# IMySqlValue.ReadValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IMySqlValue
的用法示例。
在下文中一共展示了IMySqlValue.ReadValue方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadColumnValue
public IMySqlValue ReadColumnValue(int index, MySqlField field, IMySqlValue valObject)
{
long length = -1;
bool isNull;
if (nullMap != null)
isNull = nullMap[index + 2];
else
{
length = packet.ReadFieldLength();
isNull = length == -1;
}
packet.Encoding = field.Encoding;
packet.Version = version;
return valObject.ReadValue(packet, length, isNull);
}
示例2: ReadColumnValue
public override IMySqlValue ReadColumnValue(int index, MySqlField field, IMySqlValue valObject)
{
long length = -1;
bool isNull;
if (nullMap != null)
isNull = nullMap[index + 2];
else
{
length = stream.ReadFieldLength();
isNull = length == -1;
}
stream.Encoding = field.Encoding;
return valObject.ReadValue(stream, length, isNull);
}
示例3: ReadColumnValue
public override IMySqlValue ReadColumnValue(int index, MySqlField field, IMySqlValue valObject)
{
bool flag;
long length = -1L;
if (this.nullMap != null)
{
flag = this.nullMap[index + 2];
}
else
{
length = this.stream.ReadFieldLength();
flag = length == -1L;
}
this.stream.Encoding = field.Encoding;
return valObject.ReadValue(this.stream, length, flag);
}
示例4: ReadColumnValue
public IMySqlValue ReadColumnValue(int index, MySqlField field, IMySqlValue valObject)
{
packet.Encoding = field.Encoding;
packet.Version = version;
if (nullMap != null)
{
return valObject.ReadValue(packet, -1, nullMap[index + 2]);
}
else
{
long length = packet.ReadFieldLength();
return valObject.ReadValue(packet, length, length == -1);
}
}