语言

Long.Compress(Int64, Int64) 方法

定义

将掩码选择的位压缩为连续的低序位置。

[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

参数

i
Int64

掩码选择的位压缩为连续的低序位置的值。

mask
Int64

选择位位置的掩码。

返回

通过压缩掩码选择的位来形成的值。

特性

注解

将掩码选择的位压缩为连续的低序位置。

适用于