ProtoOutputStream.CheckFieldId(Int64, Int64) 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.
Validates that the fieldId provided is of the type and count from expectedType.
[Android.Runtime.Register("checkFieldId", "(JJ)I", "", ApiSince=30)]
public static int CheckFieldId (long fieldId, long expectedFlags);
[<Android.Runtime.Register("checkFieldId", "(JJ)I", "", ApiSince=30)>]
static member CheckFieldId : int64 * int64 -> int
Parameters
- fieldId
- Int64
- expectedFlags
- Int64
Returns
The raw ID of that field.
- Attributes
Remarks
Validates that the fieldId provided is of the type and count from expectedType.
The type must match exactly to pass this check.
The count must match according to this truth table to pass the check:
expectedFlags UNKNOWN SINGLE REPEATED PACKED fieldId UNKNOWN true false false false SINGLE x true false false REPEATED x false true false PACKED x false true true
Java documentation for android.util.proto.ProtoOutputStream.checkFieldId(long, long)
.
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.