C# Class GSF.Parsing.ISupportBinaryImageExtensions

Defines extension functions related to ISupportBinaryImage implementations.
Mostra file Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
BinaryImage ( this imageSource ) : byte[]

Returns a binary image of an object that implements ISupportBinaryImage.

This is a convenience method. It is often optimal to use ISupportBinaryImage.GenerateBinaryImage directly using a common buffer instead of always allocating new buffers.

CopyBinaryImageToStream ( this imageSource, Stream stream ) : void

Copies binary image of object that implements ISupportBinaryImage to a Stream.

ParseBinaryImageFromStream ( this imageSource, Stream stream ) : int

Parses binary image of object that implements ISupportBinaryImage from a Stream.

Method Details

BinaryImage() public static method

Returns a binary image of an object that implements ISupportBinaryImage.
This is a convenience method. It is often optimal to use ISupportBinaryImage.GenerateBinaryImage directly using a common buffer instead of always allocating new buffers.
cannot be null.
public static BinaryImage ( this imageSource ) : byte[]
imageSource this source.
return byte[]

CopyBinaryImageToStream() public static method

Copies binary image of object that implements ISupportBinaryImage to a Stream.
cannot be null.
public static CopyBinaryImageToStream ( this imageSource, Stream stream ) : void
imageSource this source.
stream Stream Destination .
return void

ParseBinaryImageFromStream() public static method

Parses binary image of object that implements ISupportBinaryImage from a Stream.
cannot be null.
public static ParseBinaryImageFromStream ( this imageSource, Stream stream ) : int
imageSource this source.
stream Stream Source .
return int