C# 클래스 GSF.Parsing.ISupportBinaryImageExtensions

Defines extension functions related to ISupportBinaryImage implementations.
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf

공개 메소드들

메소드 설명
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.

메소드 상세

BinaryImage() 공개 정적인 메소드

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.
리턴 byte[]

CopyBinaryImageToStream() 공개 정적인 메소드

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 .
리턴 void

ParseBinaryImageFromStream() 공개 정적인 메소드

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 .
리턴 int