C# Class GSF.Historian.Files.MetadataRecordComposedFields

Defines specific fields for MetadataRecords that are of type DataType.Composed.
Inheritance: ISupportBinaryImage
Show file Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

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

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

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

Initializes MetadataRecordComposedFields from the specified buffer.

Private Methods

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

Initializes a new instance of the MetadataRecordComposedFields class.

WriteImage ( BinaryWriter writer ) : void

Method Details

GenerateBinaryImage() public method

Generates binary image of the MetadataRecordComposedFields 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 MetadataRecordComposedFields 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