| Modifier and Type | Method and Description |
|---|---|
static WireType |
WireType.valueOf(int value) |
static WireType |
WireType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WireType[] |
WireType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
WireType |
Message.Datatype.wireType() |
| Modifier and Type | Method and Description |
|---|---|
static int |
WireOutput.makeTag(int fieldNumber,
WireType wireType)
Makes a tag value given a field number and wire type.
|
static int |
WireOutput.tagSize(int fieldNumber,
WireType wireType)
Computes the number of bytes that would be needed to encode a tag.
|
static int |
WireOutput.writeTag(int fieldNumber,
WireType wireType,
byte[] buffer,
int offset)
Writes a tag value (as a variable-length integer combining a field number and
wire type) to the given output array.
|
Copyright © 2013 Square, Inc.. All Rights Reserved.