Examples of popLimit()


Examples of com.google.protobuf.CodedInputStream.popLimit()

            line.exception = mapFromProtobuf(protobuf.getExceptionBuilder());
          }

          lines.add(line);

          in.popLimit(oldLimit);
        }

        i++;
      }
View Full Code Here

Examples of com.google.protobuf.CodedInputStream.popLimit()

            int size = cin.readRawVarint32();
            int previous = cin.pushLimit(size);
            //cin.setSizeLimit(size + 4);
            OpenWire.Message message = OpenWire.Message.parseFrom(cin);
            cin.resetBytesReadCounter();
            cin.popLimit(previous);

            if (verbose) {
                System.out.println("Reading message: " + i + " = " + message);
            }
            if (doAssertions) {
View Full Code Here

Examples of com.google.protobuf.CodedInputStream.popLimit()

        CodedInputStream cin = CodedInputStream.newInstance(in);
        for (int i = 0; i < messageCount; i++) {
            int size = cin.readRawVarint32();
            int previous = cin.pushLimit(size);
            OpenWire.Message message = OpenWire.Message.parseFrom(cin);
            cin.popLimit(previous);
            System.out.println("Reading message: " + i + " = " + message);

            assertEquals("message.getPersistent()", true, message.getPersistent());
            assertEquals("message.getProducerId()", 1234, message.getProducerId());
            assertEquals("message.getProducerCounter()", i, message.getProducerCounter());
View Full Code Here

Examples of com.google.protobuf.CodedInputStream.popLimit()

        //$FALL-THROUGH$
        case 3: {
          int cnt = in.readRawVarint32();
          int oldLimit = in.pushLimit(cnt);
          members.setMeta(ChunkMeta.parseFrom(in));
          in.popLimit(oldLimit);
          tag = in.readTag();
          continue;
        }
        default:
          in.skipField(tag);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.