Share via


InsertValueIntoArray Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Inserts a value at a specified position in a byte array.

Namespace:  Microsoft.SPOT.Hardware
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public Shared Sub InsertValueIntoArray ( _
    data As Byte(), _
    pos As Integer, _
    size As Integer, _
    val As UInteger _
)
public static void InsertValueIntoArray(
    byte[] data,
    int pos,
    int size,
    uint val
)
public:
static void InsertValueIntoArray(
    array<unsigned char>^ data, 
    int pos, 
    int size, 
    unsigned int val
)
static member InsertValueIntoArray : 
        data:byte[] * 
        pos:int * 
        size:int * 
        val:uint32 -> unit 
public static function InsertValueIntoArray(
    data : byte[], 
    pos : int, 
    size : int, 
    val : uint
)

Parameters

  • data
    Type: array<System. . :: . .Byte> [] () [] []
    The array into which you want to insert the specified value.
  • pos
    Type: System. . :: . .Int32
    The position in the array where you want to insert the specified value.
  • size
    Type: System. . :: . .Int32
    The size of the data objects contained in the array, in bytes. Valid arguments for this parameter are 1, 2, and 4.

Remarks

This method overwrites existing data in the array.

.NET Framework Security

See Also

Reference

Utility Class

Microsoft.SPOT.Hardware Namespace