Package com.google.protobuf
Class ArrayDecoders.Registers
- java.lang.Object
-
- com.google.protobuf.ArrayDecoders.Registers
-
- Enclosing class:
- ArrayDecoders
static final class ArrayDecoders.Registers extends java.lang.Object
A helper used to return multiple values in a Java function. Java doesn't natively support returning multiple values in a function. Creating a new Object to hold the return values will be too expensive. Instead, we pass a Registers instance to functions that want to return multiple values and let the function set the return value in this Registers instance instead.TODO(xiaofeng): This could be merged into CodedInputStream or CodedInputStreamReader which is already being passed through all the parsing routines.
-
-
Field Summary
Fields Modifier and Type Field Description ExtensionRegistryLite
extensionRegistry
int
int1
long
long1
java.lang.Object
object1
int
recursionDepth
-
Constructor Summary
Constructors Constructor Description Registers()
Registers(ExtensionRegistryLite extensionRegistry)
-
-
-
Field Detail
-
int1
public int int1
-
long1
public long long1
-
object1
public java.lang.Object object1
-
extensionRegistry
public final ExtensionRegistryLite extensionRegistry
-
recursionDepth
public int recursionDepth
-
-
Constructor Detail
-
Registers
Registers()
-
Registers
Registers(ExtensionRegistryLite extensionRegistry)
-
-