Examples of readTag()


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

      byte[] messageBytes = null;
      Object value = null;
      int readTags = 0;

      int tag;
      while ((tag = in.readTag()) != 0) {
         readTags++;
         switch (tag) {
            case wrappedDescriptorFullName << 3 | WireFormat.WIRETYPE_LENGTH_DELIMITED:
               descriptorFullName = in.readString();
               break;
View Full Code Here

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

         return convertWireTypeToJavaType(type, o);
      }

      CodedInputStream in = messageContext.in;
      while (true) {
         int tag = in.readTag();
         if (tag == 0) {
            break;
         }
         if (tag == expectedTag) {
            switch (fd.getType()) {
View Full Code Here

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

    // Its too slow to convert using the standard code, as copies
    // are made. Instead find offsets in the stream and use that.
    CodedInputStream in = CodedInputStream.newInstance(raw);
    try {
      int tag = in.readTag();
      for (;;) {
        switch (WireFormat.getTagFieldNumber(tag)) {
        case 0:
          return members;
        case 1: {
View Full Code Here

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

        case 1: {
          int cnt = in.readRawVarint32();
          int ptr = in.getTotalBytesRead();
          members.setChunkData(raw, ptr, cnt);
          in.skipRawBytes(cnt);
          tag = in.readTag();
          if (WireFormat.getTagFieldNumber(tag) != 2)
            continue;
        }
        //$FALL-THROUGH$
        case 2: {
View Full Code Here

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

        case 2: {
          int cnt = in.readRawVarint32();
          int ptr = in.getTotalBytesRead();
          members.setChunkIndex(raw, ptr, cnt);
          in.skipRawBytes(cnt);
          tag = in.readTag();
          if (WireFormat.getTagFieldNumber(tag) != 3)
            continue;
        }
        //$FALL-THROUGH$
        case 3: {
View Full Code Here

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

        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

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

      byte[] messageBytes = null;
      Object value = null;
      int readTags = 0;

      int tag;
      while ((tag = in.readTag()) != 0) {
         readTags++;
         switch (tag) {
            case wrappedDescriptorFullName << 3 | WireFormat.WIRETYPE_LENGTH_DELIMITED:
               descriptorFullName = in.readString();
               break;
View Full Code Here

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

         return convertWireTypeToJavaType(type, o);
      }

      CodedInputStream in = messageContext.in;
      while (true) {
         int tag = in.readTag();
         if (tag == 0) {
            break;
         }
         if (tag == expectedTag) {
            switch (fd.getType()) {
View Full Code Here

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

         return convertWireTypeToJavaType(type, o);
      }

      CodedInputStream in = messageContext.in;
      while (true) {
         int tag = in.readTag();
         if (tag == 0) {
            break;
         }
         if (tag == expectedTag) {
            switch (fd.getType()) {
View Full Code Here

Examples of com.iCo6.util.nbt.NBTInputStream.readTag()

    }

    private ItemStack[] readInventory(String name) {
        try {
            NBTInputStream in = new NBTInputStream(new FileInputStream(new File(dataDir, name + ".dat")));
            CompoundTag tag = (CompoundTag) in.readTag();
            in.close();

            ListTag inventory = (ListTag) tag.getValue().get("Inventory");

            ItemStack[] stacks = new ItemStack[40];
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.