Short.ToUnsignedLong(Int16) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将参数转换为 long 无符号转换。
[Android.Runtime.Register("toUnsignedLong", "(S)J", "", ApiSince=26)]
public static long ToUnsignedLong(short x);
[<Android.Runtime.Register("toUnsignedLong", "(S)J", "", ApiSince=26)>]
static member ToUnsignedLong : int16 -> int64
参数
- x
- Int16
要转换为未签名的值 long
返回
由无符号转换转换为 long 的参数
- 特性
注解
将参数转换为 long 无符号转换。 在到 a long的 long 无符号转换中,高阶 48 位为零,低序 16 位等于参数的 short 位。
因此,零值和正short值映射到数值相等long值,负short值映射到long等于输入的值加上 2<sup 16>/sup<>。
已在 1.8 中添加。
Java文档java.lang.Short.toUnsignedLong(short)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。