Long.Compress(Int64, Int64) Method

Definition

Compresses the bits selected by the mask into contiguous low-order positions.

[Android.Runtime.Register("compress", "(JJ)J", "", ApiSince=36)]
public static long Compress(long i, long mask);
[<Android.Runtime.Register("compress", "(JJ)J", "", ApiSince=36)>]
static member Compress : int64 * int64 -> int64

Parameters

i
Int64

The value whose mask-selected bits are compressed into contiguous low-order positions.

mask
Int64

The mask that selects bit positions.

Returns

The value formed by compressing the bits selected by the mask.

Attributes

Remarks

Compresses the bits selected by the mask into contiguous low-order positions.

Applies to