C# Class GSF.Communication.Radius.RadiusPacketAttribute

Represents an attribute of RadiusPacket.
Inheritance: ISupportBinaryImage
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates a binary representation of this RadiusPacketAttribute object and copies it into the given buffer.

ParseBinaryImage ( byte buffer, int startIndex, int length ) : int

Parses RadiusPacketAttribute object by parsing the specified buffer containing a binary image.

RadiusPacketAttribute ( ) : System

Initializes a new instance of the RadiusPacketAttribute class.

RadiusPacketAttribute ( AttributeType type, IPAddress value ) : System

Initializes a new instance of the RadiusPacketAttribute class.

RadiusPacketAttribute ( AttributeType type, UInt32 value ) : System

Initializes a new instance of the RadiusPacketAttribute class.

RadiusPacketAttribute ( AttributeType type, byte value ) : System

Initializes a new instance of the RadiusPacketAttribute class.

RadiusPacketAttribute ( AttributeType type, string value ) : System

Initializes a new instance of the RadiusPacketAttribute class.

RadiusPacketAttribute ( byte buffer, int startIndex, int length ) : System

Initializes a new instance of the RadiusPacketAttribute class.

Method Details

GenerateBinaryImage() public method

Generates a binary representation of this RadiusPacketAttribute object and copies it into the given buffer.
is null. /// or is less than 0 -or- /// and will exceed length. ///
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
return int

ParseBinaryImage() public method

Parses RadiusPacketAttribute object by parsing the specified buffer containing a binary image.
is null.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte Buffer containing binary image to parse.
startIndex int 0-based starting index in the to start parsing.
length int Valid number of bytes within from .
return int

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( ) : System
return System

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( AttributeType type, IPAddress value ) : System
type AttributeType Type of the .
value System.Net.IPAddress IP address value of the .
return System

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( AttributeType type, UInt32 value ) : System
type AttributeType Type of the .
value System.UInt32 32-bit unsigned integer value of the .
return System

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( AttributeType type, byte value ) : System
type AttributeType Type of the .
value byte Byte array value of the .
return System

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( AttributeType type, string value ) : System
type AttributeType Type of the .
value string Text value of the .
return System

RadiusPacketAttribute() public method

Initializes a new instance of the RadiusPacketAttribute class.
public RadiusPacketAttribute ( byte buffer, int startIndex, int length ) : System
buffer byte Buffer containing binary image to be used for initializing .
startIndex int 0-based starting index of initialization data in the .
length int Valid number of bytes in from .
return System