Class 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 Detail

      • int1

        public int int1
      • long1

        public long long1
      • object1

        public java.lang.Object object1