Integer.Expand(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value obtained by expanding the bits of the
specified int
value, i
, in accordance with
the specified bit mask.
[Android.Runtime.Register("expand", "(II)I", "", ApiSince=36)]
public static int Expand(int i, int mask);
[<Android.Runtime.Register("expand", "(II)I", "", ApiSince=36)>]
static member Expand : int * int -> int
Parameters
- i
- Int32
the value whose bits are to be expanded
- mask
- Int32
the bit mask
Returns
the expanded value
- Attributes
Remarks
Returns the value obtained by expanding the bits of the specified int
value, i
, in accordance with the specified bit mask.
For each one-bit value mb
of the mask, from least significant to most significant, the next contiguous bit value of i
starting at the least significant bit is assigned to the expanded value at the same bit location as mb
. All other remaining bits of the expanded value are set to zero.
Added in 19.
Java documentation for java.lang.Integer.expand(int, int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.