Click or drag to resize

CommonCopyImage(ISupportBinaryImage, Byte, Int32) Method

This is a common optimized block copy function for any kind of data.

Namespace: GSF.PhasorProtocols
Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.181-beta
Syntax
public static void CopyImage(
	this ISupportBinaryImage channel,
	byte[] destination,
	ref int index
)
View Source

Parameters

channel  ISupportBinaryImage
Source channel with BinaryImage data to copy.
destination  Byte
Destination buffer to hold copied buffer data.
index  Int32
Index into destination buffer to begin copy. Index is automatically incremented by BinaryLength.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ISupportBinaryImage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
This function automatically advances index for convenience.
See Also