Package org.infinispan.protostream.impl
Class WireFormat
- java.lang.Object
-
- org.infinispan.protostream.impl.WireFormat
-
@Deprecated public final class WireFormat extends Object
Deprecated.replaced byWireType. To be removed in version 5.Defines numeric constants for wire types. Also helps extracting the wire type and field number out of a tag.- Author:
- anistor@redhat.com
-
-
Field Summary
Fields Modifier and Type Field Description static intWIRETYPE_END_GROUPDeprecated.static intWIRETYPE_FIXED32Deprecated.static intWIRETYPE_FIXED64Deprecated.static intWIRETYPE_LENGTH_DELIMITEDDeprecated.static intWIRETYPE_START_GROUPDeprecated.static intWIRETYPE_VARINTDeprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intgetTagFieldNumber(int tag)Deprecated.Given a tag value, determines the field number (the upper 29 bits).static intgetTagWireType(int tag)Deprecated.Given a tag value, determines the wire type (the lower 3 bits).static intmakeTag(int fieldNumber, int wireType)Deprecated.Makes a tag value given a field number and wire type.
-
-
-
Field Detail
-
WIRETYPE_VARINT
public static final int WIRETYPE_VARINT
Deprecated.- See Also:
- Constant Field Values
-
WIRETYPE_FIXED64
public static final int WIRETYPE_FIXED64
Deprecated.- See Also:
- Constant Field Values
-
WIRETYPE_LENGTH_DELIMITED
public static final int WIRETYPE_LENGTH_DELIMITED
Deprecated.- See Also:
- Constant Field Values
-
WIRETYPE_START_GROUP
public static final int WIRETYPE_START_GROUP
Deprecated.- See Also:
- Constant Field Values
-
WIRETYPE_END_GROUP
public static final int WIRETYPE_END_GROUP
Deprecated.- See Also:
- Constant Field Values
-
WIRETYPE_FIXED32
public static final int WIRETYPE_FIXED32
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
makeTag
public static int makeTag(int fieldNumber, int wireType)Deprecated.Makes a tag value given a field number and wire type.
-
getTagWireType
public static int getTagWireType(int tag)
Deprecated.Given a tag value, determines the wire type (the lower 3 bits).
-
getTagFieldNumber
public static int getTagFieldNumber(int tag)
Deprecated.Given a tag value, determines the field number (the upper 29 bits).
-
-