C# Class GSF.Historian.Files.MetadataRecordAnalogFields

Defines specific fields for MetadataRecords that are of type DataType.Analog.
Inheritance: ISupportBinaryImage
Exibir arquivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

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

Generates binary image of the MetadataRecordAnalogFields and copies it into the given buffer, for BinaryLength bytes.

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

Initializes MetadataRecordAnalogFields from the specified buffer.

Private Methods

Method Description
MetadataRecordAnalogFields ( BinaryReader reader ) : System
MetadataRecordAnalogFields ( MetadataFileLegacyMode legacyMode ) : System

Initializes a new instance of the MetadataRecordAnalogFields class.

WriteImage ( BinaryWriter writer ) : void

Method Details

GenerateBinaryImage() public method

Generates binary image of the MetadataRecordAnalogFields and copies it into the given buffer, for BinaryLength bytes.
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

Initializes MetadataRecordAnalogFields from the specified buffer.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte 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 int