Utility.CombineArrays Method (Byte[], Int32, Int32, Byte[], Int32, Int32)

Combines ranges of data from two arrays of bytes into one array.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

[MethodImplAttribute]
public static byte [] CombineArrays (
         byte[] src1,
         intoffset1,
         intcount1,
         byte[] src2,
         intoffset2,
         intcount2
)

Parameters

  • src1
    The first array whose data you want to combine with data from another array.
  • offset1
    The offset from the beginning of the first array to the target data.
  • count1
    The amount of data you want to extract from the first array, in bytes.
  • src2
    The second array whose data you want to combine with data from another array.
  • offset2
    The offset from the beginning of the second array to the target data.
  • count2
    The amount of data you want to extract from the second array, in bytes.

Return Value

A new array of bytes that contains the specified ranges of data from two specified arrays.

Remarks

This method combines data from two arrays by inserting the specified data from the second array after the specified data from the first array.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Utility Class
Utility Members
Microsoft.SPOT.Hardware Namespace