Android.Util.Proto Namespace
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.
Provides Android APIs for writing protobuf data and identifying field wire types.
Classes
| Name | Description |
|---|---|
| ProtoOutputStream |
Class to write to a protobuf stream. |
Enums
| Name | Description |
|---|---|
| WireType |
Specifies the wire type codes used in protobuf field tags and the mask used to extract those codes. |
Remarks
ProtoOutputStream writes fields using identifiers that combine a field number with type and count flags. Use GetBytes() to retrieve an in-memory result, or Flush() to write the result to the output stream supplied to the constructor.
WireType contains the wire type codes used in field tags and a mask for extracting them. Field identifiers, encoded field tags, and nested-object tokens have different layouts.
See the AOSP implementations of ProtoOutputStreamhttps://android.googlesource.com/platform/frameworks/base/+/1cdfff555f4a21f71ccc978290e2e212e2f8b168/core/java/android/util/proto/ProtoOutputStream.java and ProtoStreamhttps://android.googlesource.com/platform/frameworks/base/+/1cdfff555f4a21f71ccc978290e2e212e2f8b168/core/java/android/util/proto/ProtoStream.java for these formats.