本文整理汇总了C#中RecordReader类的典型用法代码示例。如果您正苦于以下问题:C# RecordReader类的具体用法?C# RecordReader怎么用?C# RecordReader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RecordReader类属于命名空间,在下文中一共展示了RecordReader类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ReadField
internal override void ReadField(RecordReader reader)
{
while (!reader.IsEndOfSegment)
{
List.Add(reader.ReadReference(FormKindSet.Any));
}
}
开发者ID:unforbidable,项目名称:patcher,代码行数:7,代码来源:ReferenceArray.cs
示例2: UnknownRecord
internal UnknownRecord(Module module, RecordReader reader)
: base(module, reader)
{
while (reader.ReadField()) {
new UnknownRecordField(this, ref reader);
}
}
开发者ID:Burton-Radons,项目名称:Alexandria,代码行数:7,代码来源:UnknownRecord.cs
示例3: UnknownRecordField
internal UnknownRecordField(UnknownRecord record, ref RecordReader reader)
: base(record, reader.Field.Type)
{
RecordField field = reader.Field;
Data = reader.Reader.ReadBytes(field.Size);
}
开发者ID:Burton-Radons,项目名称:Alexandria,代码行数:7,代码来源:UnknownRecord.cs
示例4: FormLoader
public FormLoader(Plugin plugin, RecordReader stockReader, bool lazyLoading, int backgroundJobs)
{
if (backgroundJobs < 0)
throw new ArgumentException("Number of bakcground jobs must be a positive integer or zero");
sharedData = new SharedData()
{
Plugin = plugin,
StockReader = stockReader,
LazyLoading = lazyLoading,
FormsToLoad = new BlockingCollection<Form>(new ConcurrentQueue<Form>(), 1024),
WorkerCompleteEvent = new AutoResetEvent(false)
};
this.stockReader = stockReader;
asyncLoading = backgroundJobs > 0;
bool useStockReader = true;
while (backgroundJobs-- > 0)
{
Worker worker = new Worker(sharedData, useStockReader);
worker.RunWorkerCompleted += Worker_RunWorkerCompleted;
worker.RunWorkerAsync();
workers.Add(new WorkerInfo()
{
Worker = worker
});
// Only the first worker can use the stock reader
useStockReader = false;
}
}
开发者ID:unforbidable,项目名称:patcher,代码行数:32,代码来源:FormLoader.cs
示例5: RecordKEY
public RecordKEY(RecordReader rr)
{
FLAGS = rr.ReadUInt16();
PROTOCOL = rr.ReadByte();
ALGORITHM = rr.ReadByte();
PUBLICKEY = rr.ReadString();
}
开发者ID:sstraus,项目名称:xmpp,代码行数:7,代码来源:RecordKEY.cs
示例6: RecordA
///<summary>
///</summary>
///<param name="rr"></param>
public RecordA(RecordReader rr)
{
IPAddress.TryParse(string.Format("{0}.{1}.{2}.{3}",
rr.ReadByte(),
rr.ReadByte(),
rr.ReadByte(),
rr.ReadByte()), out Address);
}
开发者ID:sstraus,项目名称:xmpp,代码行数:11,代码来源:RecordA.cs
示例7: RecordNULL
///<summary>
///</summary>
///<param name="rr"></param>
public RecordNULL(RecordReader rr)
{
rr.Position -= 2;
// re-read length
var rdlength = rr.ReadUInt16();
Anything = new byte[rdlength];
Anything = rr.ReadBytes(rdlength);
}
开发者ID:sstraus,项目名称:xmpp,代码行数:11,代码来源:RecordNULL.cs
示例8: RecordNXT
public RecordNXT(RecordReader rr)
{
ushort length = rr.ReadUInt16(-2);
NEXTDOMAINNAME = rr.ReadDomainName();
length -= (ushort)rr.Position;
BITMAP = new byte[length];
BITMAP = rr.ReadBytes(length);
}
开发者ID:sstraus,项目名称:xmpp,代码行数:8,代码来源:RecordNXT.cs
示例9: RecordNAPTR
///<summary>
///</summary>
///<param name="rr"></param>
public RecordNAPTR(RecordReader rr)
{
Order = rr.ReadUInt16();
Preference = rr.ReadUInt16();
Flags = rr.ReadString();
Services = rr.ReadString();
Regexp = rr.ReadString();
Replacement = rr.ReadDomainName();
}
开发者ID:sstraus,项目名称:xmpp,代码行数:12,代码来源:RecordNAPTR.cs
示例10: X25Record
public X25Record(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_psdnAddress = recordReader.ReadString();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:10,代码来源:X25Record.cs
示例11: NSAPPTRRecord
public NSAPPTRRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_owner = recordReader.ReadString();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:10,代码来源:NSAPPTRRecord.cs
示例12: RecordDS
public RecordDS(RecordReader rr)
{
ushort length = rr.ReadUInt16(-2);
KEYTAG = rr.ReadUInt16();
ALGORITHM = rr.ReadByte();
DIGESTTYPE = rr.ReadByte();
length -= 4;
DIGEST = new byte[length];
DIGEST = rr.ReadBytes(length);
}
开发者ID:sstraus,项目名称:xmpp,代码行数:10,代码来源:RecordDS.cs
示例13: RecordSOA
public RecordSOA(RecordReader rr)
{
MNAME = rr.ReadDomainName();
RNAME = rr.ReadDomainName();
SERIAL = rr.ReadUInt32();
REFRESH = rr.ReadUInt32();
RETRY = rr.ReadUInt32();
EXPIRE = rr.ReadUInt32();
MINIMUM = rr.ReadUInt32();
}
开发者ID:sstraus,项目名称:xmpp,代码行数:10,代码来源:RecordSOA.cs
示例14: MGRecord
public MGRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_mgmName = recordReader.ReadDomainName();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:10,代码来源:MGRecord.cs
示例15: ARecord
public ARecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_address = new IPAddress(recordReader.ReadBytes(4));
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:10,代码来源:ARecord.cs
示例16: MINFORecord
public MINFORecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_rMailBx = recordReader.ReadDomainName();
m_eMailBx = recordReader.ReadDomainName();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:11,代码来源:MINFORecord.cs
示例17: RTRecord
public RTRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_preference = recordReader.ReadUInt16();
m_intermediateHost = recordReader.ReadDomainName();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:11,代码来源:RTRecord.cs
示例18: HINFORecord
public HINFORecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_cpu = recordReader.ReadString();
m_os = recordReader.ReadString();
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:11,代码来源:HINFORecord.cs
示例19: NULLRecord
public NULLRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
var count = recordReader.ReadUInt16(-1);
m_anything = recordReader.ReadBytes(count);
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:11,代码来源:NULLRecord.cs
示例20: APLRecord
public APLRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
var count = recordReader.ReadUInt16(-2);
m_rdata = recordReader.ReadBytes(count);
}
开发者ID:atanasmihaylov,项目名称:lanscan,代码行数:11,代码来源:APLRecord.cs
注:本文中的RecordReader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论