This topic has not yet been rated - Rate this topic

Utility.ExtractValueFromArray Method

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.Hardware (in microsoft.spot.hardware.dll)


[MethodImplAttribute]
public static UInt32 ExtractValueFromArray (
         byte[] data,
         int pos,
         int size
)

Parameters

data
The array of data from which you want to extract a value.
pos
The position of the data you want to extract from the array.
size
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

The value extracted from the byte array.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.