Share via


ExtractValueFromArray Method

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

Extracts a value from a byte array, using the specified position and size of the data objects in the array.

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

Syntax

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

Parameters

  • data
    Type: array<System. . :: . .Byte> [] () [] []
    The array of data from which you want to extract a value.
  • size
    Type: System. . :: . .Int32
    The size of the data objects you want to extract from the the array, in bytes. Valid arguments for this parameter are 1, 2, and 4.

Return Value

Type: System. . :: . .UInt32
The value extracted from the byte array.

.NET Framework Security

See Also

Reference

Utility Class

Microsoft.SPOT.Hardware Namespace