C# Class Heijden.DNS.RecordReader

Show file Open project: drorgl/MSDNSWebAdmin Class Usage Examples

Public Methods

Method Description
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

Method Details

ReadByte() public method

Read a byte from record
public ReadByte ( ) : byte
return byte

ReadBytes() public method

read a specified number of bytes from record
public ReadBytes ( int intLength ) : byte[]
intLength int
return byte[]

ReadChar() public method

Read a char from record
public ReadChar ( ) : char
return char

ReadDomainName() public method

read domain name from record, expanding compression if applied
public ReadDomainName ( ) : string
return string

ReadRecord() public method

reads a record type of Record*
public ReadRecord ( Type type ) : Record
type System.Type
return Record

ReadString() public method

reads a string from record
public ReadString ( ) : string
return string

ReadUInt16() public method

read uint16 (two bytes)
public ReadUInt16 ( ) : UInt16
return System.UInt16

ReadUInt16() public method

read uint16 (two bytes)
public ReadUInt16 ( int offset ) : UInt16
offset int advance position by
return System.UInt16

ReadUInt32() public method

read 4 bytes from record
public ReadUInt32 ( ) : UInt32
return System.UInt32

RecordReader() public method

public RecordReader ( byte data ) : System
data byte
return System

RecordReader() public method

Initialize with data and starting position
public RecordReader ( byte data, int Position ) : System
data byte
Position int starting position
return System