语言

ProtoOutputStream.WireTypeMask 字段

定义

注意

This constant will be removed in the future version. Use Android.Util.Proto.WireType enum directly instead of this field.

掩码,从标记中选择线路类型。

[Android.Runtime.Register("WIRE_TYPE_MASK", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Util.Proto.WireType enum directly instead of this field.", true)]
public const Android.Util.Proto.WireType WireTypeMask = 7;
[<Android.Runtime.Register("WIRE_TYPE_MASK", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Util.Proto.WireType enum directly instead of this field.", true)>]
val mutable WireTypeMask : Android.Util.Proto.WireType

字段值

Value = 7
属性

注解

掩码,从标记中选择线路类型。

// Reading a wire type from a tag.
int wireType = tag & WIRE_TYPE_MASK;

// Building a tag from a field number and a wire type.
int tag = (fieldNumber << FIELD_ID_SHIFT) | wireType;

Android 参考。android.util.proto.ProtoOutputStream.WIRE_TYPE_MASK

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于