C# Класс Heijden.DNS.RecordReader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ReadByte ( ) : byte

Read a byte from record

ReadBytes ( int intLength ) : byte[]

read a specified number of bytes from record

ReadChar ( ) : char

Read a char from record

ReadDomainName ( ) : string

read domain name from record, expanding compression if applied

ReadRecord ( Type type ) : Record

reads a record type of Record*

ReadString ( ) : string

reads a string from record

ReadUInt16 ( ) : UInt16

read uint16 (two bytes)

ReadUInt16 ( int offset ) : UInt16

read uint16 (two bytes)

ReadUInt32 ( ) : UInt32

read 4 bytes from record

RecordReader ( byte data ) : System
RecordReader ( byte data, int Position ) : System

Initialize with data and starting position

Описание методов

ReadByte() публичный Метод

Read a byte from record
public ReadByte ( ) : byte
Результат byte

ReadBytes() публичный Метод

read a specified number of bytes from record
public ReadBytes ( int intLength ) : byte[]
intLength int
Результат byte[]

ReadChar() публичный Метод

Read a char from record
public ReadChar ( ) : char
Результат char

ReadDomainName() публичный Метод

read domain name from record, expanding compression if applied
public ReadDomainName ( ) : string
Результат string

ReadRecord() публичный Метод

reads a record type of Record*
public ReadRecord ( Type type ) : Record
type System.Type
Результат Record

ReadString() публичный Метод

reads a string from record
public ReadString ( ) : string
Результат string

ReadUInt16() публичный Метод

read uint16 (two bytes)
public ReadUInt16 ( ) : UInt16
Результат System.UInt16

ReadUInt16() публичный Метод

read uint16 (two bytes)
public ReadUInt16 ( int offset ) : UInt16
offset int advance position by
Результат System.UInt16

ReadUInt32() публичный Метод

read 4 bytes from record
public ReadUInt32 ( ) : UInt32
Результат System.UInt32

RecordReader() публичный Метод

public RecordReader ( byte data ) : System
data byte
Результат System

RecordReader() публичный Метод

Initialize with data and starting position
public RecordReader ( byte data, int Position ) : System
data byte
Position int starting position
Результат System