GSF.PhasorProtocols.IEC61850_90_5.AnalogDefinition.ParseConversionFactor C# (CSharp) Метод

ParseConversionFactor() приватный Метод

Parses conversion factor image from the specified buffer.
private ParseConversionFactor ( byte buffer, int startIndex ) : int
buffer byte Binary image to parse.
startIndex int Start index into to begin parsing.
Результат int
        internal int ParseConversionFactor(byte[] buffer, int startIndex)
        {
            // Get analog type from first byte
            this.AnalogType = (AnalogType)buffer[startIndex];

            // Last three bytes represent scaling factor
            ScalingValue = BigEndian.ToUInt24(buffer, startIndex + 1);

            return ConversionFactorLength;
        }