ProtoOutputStream.WriteTag(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Write an individual field tag by hand.
[Android.Runtime.Register("writeTag", "(II)V", "", ApiSince=30)]
public void WriteTag(int id, int wireType);
[<Android.Runtime.Register("writeTag", "(II)V", "", ApiSince=30)>]
member this.WriteTag : int * int -> unit
Parameters
- id
- Int32
The field number, before shifting it to form the tag.
- wireType
- Int32
The wire type code to combine with the shifted field number. The tag is written as (id << 3) | wireType, using variable-length integer encoding.
- Attributes
Remarks
Write an individual field tag by hand.
See Protobuf Encoding for details on the structure of how tags and data are written.
Java documentation for android.util.proto.ProtoOutputStream.writeTag(int, int).
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.