Gemstone COMTRADE Library
Show/Hide TOC

# WriterUpdateCFFEndSample Method

Updates a Combined File Format (.cff) COMTRADE file stream with a final end sample number.

## Definition

Namespace: Gemstone.COMTRADE
Assembly: Gemstone.COMTRADE (in Gemstone.COMTRADE.dll) Version: 1.0.154 -- Release Build+2f310ca35c34c87f0b7b96bec0e701df785beb80
C#
View Source Request Example

    public static void UpdateCFFEndSample(
    	Stream stream,
    	long endSample,
    	int rateIndex = 0,
    	Encoding? encoding = null
    )

VB
View Source Request Example

    Public Shared Sub UpdateCFFEndSample (
    	stream As Stream,
    	endSample As Long,
    	Optional rateIndex As Integer = 0,
    	Optional encoding As Encoding = Nothing
    )

C++
View Source Request Example

    public:
    static void UpdateCFFEndSample(
    	Stream^ stream,
    	long long endSample,
    	int rateIndex = 0,
    	Encoding^ encoding = nullptr
    )

JavaScript
View Source Request Example

    Gemstone.COMTRADE.Writer.UpdateCFFEndSample = function(stream, endSample, rateIndex, encoding);

#### Parameters

stream Stream
  Destination stream.
endSample Int64
  End sample value.
rateIndex Int32 (Optional)
  Zero-based rate index to update.
encoding Encoding (Optional)
  Target encoding; null value will default to UTF-8 (no BOM).

## See Also

#### Reference

Writer Class
Gemstone.COMTRADE Namespace