Gemstone PhasorProtocols Library
Show/Hide TOC

# CommonCopyImage(ISupportBinaryImage, Byte, Int32) Method

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

## Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.164 -- Release Build+e526f121ce33f6a601f5d1519047de17ef46ec99
C#
View Source Request Example

    public static void CopyImage(
    	this ISupportBinaryImage channel,
    	byte[] destination,
    	ref int index
    )

VB
View Source Request Example

    <ExtensionAttribute>
    Public Shared Sub CopyImage (
    	channel As ISupportBinaryImage,
    	destination As Byte(),
    	ByRef index As Integer
    )

C++
View Source Request Example

    public:
    [ExtensionAttribute]
    static void CopyImage(
    	ISupportBinaryImage^ channel,
    	array<unsigned char>^ destination,
    	int% index
    )

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.Common.CopyImage = function(channel, destination, index);

#### 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

#### Reference

Common Class
CopyImage Overload
Gemstone.PhasorProtocols Namespace