語言

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於