This class is used internally by the Protocol Buffer Library and generated
message implementations. It is public only for the sake of those generated
messages. Others should not use this class directly.
This class contains constants and helper functions useful for dealing with
the Protocol Buffer wire format.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eWireFormat\u003c/code\u003e class is intended for internal use by the Protocol Buffer Library and generated message implementations, not for direct use by others.\u003c/p\u003e\n"],["\u003cp\u003eIt provides constants and helper functions for working with the Protocol Buffer wire format.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes methods like \u003ccode\u003eGetTagFieldNumber\u003c/code\u003e, \u003ccode\u003eGetTagWireType\u003c/code\u003e, and \u003ccode\u003eMakeTag\u003c/code\u003e for managing tag values, field numbers, and wire types.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and has inherited members such as \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, and \u003ccode\u003eGetType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be found within the \u003ccode\u003eGoogle.Protobuf\u003c/code\u003e namespace and the \u003ccode\u003eGoogle.Protobuf.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Class WireFormat (3.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.1 (latest)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WireFormat)\n- [3.23.0](/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.WireFormat)\n- [3.15.8](/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.WireFormat) \n\n public static class WireFormat\n\nThis class is used internally by the Protocol Buffer Library and generated\nmessage implementations. It is public only for the sake of those generated\nmessages. Others should not use this class directly.\n\n\nThis class contains constants and helper functions useful for dealing with\nthe Protocol Buffer wire format.\n\n\u003cbr /\u003e\n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e WireFormat \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Protobuf](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf)\n\nAssembly\n--------\n\nGoogle.Protobuf.dll\n\nMethods\n-------\n\n### GetTagFieldNumber(uint)\n\n public static int GetTagFieldNumber(uint tag)\n\nGiven a tag value, determines the field number (the upper 29 bits).\n\n### GetTagWireType(uint)\n\n public static WireFormat.WireType GetTagWireType(uint tag)\n\nGiven a tag value, determines the wire type (lower 3 bits).\n\n### MakeTag(int, WireType)\n\n public static uint MakeTag(int fieldNumber, WireFormat.WireType wireType)\n\nMakes a tag value given a field number and wire type."]]