Class WireFormat


  • final class WireFormat
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private WireFormat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static int getTagFieldNumber​(int tag)
      Given a tag value, determines the field number (the upper 29 bits).
      (package private) static int getTagWireType​(int tag)
      Given a tag value, determines the wire type (the lower 3 bits).
      (package private) static int makeTag​(int fieldNumber, int wireType)
      Makes a tag value given a field number and wire type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WireFormat

        private WireFormat()
    • Method Detail

      • makeTag

        static int makeTag​(int fieldNumber,
                           int wireType)
        Makes a tag value given a field number and wire type.
      • getTagWireType

        static int getTagWireType​(int tag)
        Given a tag value, determines the wire type (the lower 3 bits).
      • getTagFieldNumber

        static int getTagFieldNumber​(int tag)
        Given a tag value, determines the field number (the upper 29 bits).