本文整理汇总了C#中RecordReader.ReadUInt16方法的典型用法代码示例。如果您正苦于以下问题:C# RecordReader.ReadUInt16方法的具体用法?C# RecordReader.ReadUInt16怎么用?C# RecordReader.ReadUInt16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类RecordReader
的用法示例。
在下文中一共展示了RecordReader.ReadUInt16方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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();
}
示例2: 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);
}
示例3: RecordTKEY
///<summary>
///</summary>
///<param name="rr"></param>
public RecordTKEY(RecordReader rr)
{
Algorithm = rr.ReadDomainName();
Inception = rr.ReadUInt32();
Expiration = rr.ReadUInt32();
Mode = rr.ReadUInt16();
Error = rr.ReadUInt16();
Keysize = rr.ReadUInt16();
Keydata = rr.ReadBytes(Keysize);
Othersize = rr.ReadUInt16();
Otherdata = rr.ReadBytes(Othersize);
}
示例4: RecordTSIG
///<summary>
///</summary>
///<param name="rr"></param>
public RecordTSIG(RecordReader rr)
{
AlgorithmName = rr.ReadDomainName();
TimeSigned = rr.ReadUInt32() << 32 | rr.ReadUInt32();
Fudge = rr.ReadUInt16();
MacSize = rr.ReadUInt16();
Mac = rr.ReadBytes(MacSize);
OriginalId = rr.ReadUInt16();
Error = rr.ReadUInt16();
OtherLen = rr.ReadUInt16();
OtherData = rr.ReadBytes(OtherLen);
}
示例5: SRVRecord
public SRVRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_priority = recordReader.ReadUInt16();
m_weight = recordReader.ReadUInt16();
m_port = recordReader.ReadUInt16();
m_target = recordReader.ReadDomainName();
}
示例6: ReadMetaData
public override void ReadMetaData(RecordReader reader)
{
if (Signature == "GRUP")
{
throw new InvalidOperationException("Group signature was not expected now");
}
Length = reader.ReadUInt32();
Flags = reader.ReadUInt32();
FormId = reader.ReadUInt32();
Revision = reader.ReadUInt32();
Version = reader.ReadUInt16();
Unknown = reader.ReadUInt16();
}
示例7: NAPTRRecord
public NAPTRRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_order = recordReader.ReadUInt16();
m_preference = recordReader.ReadUInt16();
m_flags = recordReader.ReadString();
m_services = recordReader.ReadString();
m_regexp = recordReader.ReadString();
m_replacement = recordReader.ReadDomainName();
}
示例8: DSRecord
public DSRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
var count = recordReader.ReadUInt16(-2);
m_keyTag = recordReader.ReadUInt16();
m_algorithm = recordReader.ReadByte();
m_digestType = recordReader.ReadByte();
count -= 4;
m_digest = recordReader.ReadBytes(count);
}
示例9: RecordKEY
public RecordKEY(RecordReader rr)
{
FLAGS = rr.ReadUInt16();
PROTOCOL = rr.ReadByte();
ALGORITHM = rr.ReadByte();
PUBLICKEY = rr.ReadString();
}
示例10: 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);
}
示例11: 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);
}
示例12: TKEYRecord
public TKEYRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_algorithm = recordReader.ReadDomainName();
m_inception = recordReader.ReadUInt32();
m_expiration = recordReader.ReadUInt32();
m_mode = recordReader.ReadUInt16();
m_error = recordReader.ReadUInt16();
m_keySize = recordReader.ReadUInt16();
m_keyData = recordReader.ReadBytes(m_keySize);
m_otherSize = recordReader.ReadUInt16();
m_otherData = recordReader.ReadBytes(m_otherSize);
}
示例13: SIGRecord
public SIGRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_typeCovered = recordReader.ReadUInt16();
m_algorithm = recordReader.ReadByte();
m_labels = recordReader.ReadByte();
m_originalTtl = recordReader.ReadUInt32();
m_signatureExpiration = recordReader.ReadUInt32();
m_signatureInception = recordReader.ReadUInt32();
m_keyTag = recordReader.ReadUInt16();
m_signersName = recordReader.ReadDomainName();
m_signature = recordReader.ReadString();
}
示例14: RecordTSIG
public RecordTSIG(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_algorithmName = recordReader.ReadDomainName();
m_timeSigned = recordReader.ReadUInt32() << 32 | recordReader.ReadUInt32();
m_fudge = recordReader.ReadUInt16();
m_macSize = recordReader.ReadUInt16();
m_mac = recordReader.ReadBytes(m_macSize);
m_originalId = recordReader.ReadUInt16();
m_error = recordReader.ReadUInt16();
m_otherLen = recordReader.ReadUInt16();
m_otherData = recordReader.ReadBytes(m_otherLen);
}
示例15: MXRecord
public MXRecord(RR rr, RecordReader recordReader)
: base(rr)
{
if (recordReader == null)
{
throw new ArgumentNullException("recordReader");
}
m_preference = recordReader.ReadUInt16();
m_exchange = recordReader.ReadDomainName();
}