本文整理汇总了C#中IDataWriter.AsInt方法的典型用法代码示例。如果您正苦于以下问题:C# IDataWriter.AsInt方法的具体用法?C# IDataWriter.AsInt怎么用?C# IDataWriter.AsInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDataWriter
的用法示例。
在下文中一共展示了IDataWriter.AsInt方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Put
public override void Put(IDataWriter wr_)
{
var fs_ = Descriptor.Fields;
if(HasName) wr_.AsString(fs_[3], _name);
switch (_ztest_id_)
{
case 0: break;
case 1: wr_.AsString(fs_[0], _str); break;
case 2: wr_.AsBytes(fs_[1], _date); break;
case 3: wr_.AsMessage(fs_[2], _msg); break;
case 10: wr_.AsInt(fs_[4], _i32); break;
case 11: wr_.AsBool(fs_[5], _bol); break;
case 12: wr_.AsChar(fs_[6], _cha); break;
case 14: wr_.AsSi32(fs_[7], _si3); break;
case 15: wr_.AsBit32(fs_[8], (int)_fx3); break;
case 16: wr_.AsLong(fs_[9], (long)_ui64); break;
case 17: wr_.AsSi64(fs_[10], _si64); break;
case 18: wr_.AsLong(fs_[11], _i64); break;
case 19: wr_.AsDouble(fs_[12], _dbl); break;
case 20: wr_.AsFloat(fs_[13], _flt); break;
case 21: wr_.AsDate(fs_[14], _dat); break;
}
}
示例2: Put
public override void Put(IDataWriter wr_)
{
var fs_ = Descriptor.Fields;
if(HasAllocPageSize) wr_.AsInt(fs_[0], (int)_allocPageSize);
if(HasCacheSize) wr_.AsInt(fs_[1], (int)_cacheSize);
if(HasReserveMemory) wr_.AsBool(fs_[2], _reserveMemory);
if(HasUseLargePages) wr_.AsBool(fs_[3], _useLargePages);
if(HasHashTableSize) wr_.AsInt(fs_[4], (int)_hashTableSize);
if(HasAddress) wr_.AsString(fs_[5], _address);
if(HasName) wr_.AsString(fs_[6], _name);
}
示例3: Put
public override void Put(IDataWriter wr_)
{
var fs_ = Descriptor.Fields;
if(HasValue) wr_.AsInt(fs_[0], _value);
}