コード例 #1
0
ファイル: TxtRecord.cs プロジェクト: zhuyue1314/Xploit
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     foreach (var part in TextParts)
     {
         DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, part);
     }
 }
コード例 #2
0
ファイル: NaptrRecord.cs プロジェクト: zhuyue1314/Xploit
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, Order);
     DnsMessageBase.EncodeUShort(messageData, ref currentPosition, Preference);
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Flags);
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Services);
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, RegExp);
     DnsMessageBase.EncodeDomainName(messageData, offset, ref currentPosition, Replacement, false, domainNames);
 }
コード例 #3
0
ファイル: HInfoRecord.cs プロジェクト: zhuyue1314/Xploit
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Cpu);
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, OperatingSystem);
 }
コード例 #4
0
ファイル: GPosRecord.cs プロジェクト: zhuyue1314/Xploit
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Longitude.ToString(CultureInfo.InvariantCulture));
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Latitude.ToString(CultureInfo.InvariantCulture));
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Altitude.ToString(CultureInfo.InvariantCulture));
 }
コード例 #5
0
 protected internal override void EncodeRecordData(byte[] messageData, int offset, ref int currentPosition, Dictionary <string, ushort> domainNames)
 {
     messageData[currentPosition++] = Flags;
     DnsMessageBase.EncodeTextBlock(messageData, ref currentPosition, Tag);
     DnsMessageBase.EncodeTextWithoutLength(messageData, ref currentPosition, Value);
 }