Examples of byteAt()


Examples of javassist.bytecode.CodeIterator.byteAt()

         int index = iterator.next();
         int op = iterator.byteAt(index);

         if (op == Opcode.LDC || op == Opcode.LDC_W)
         {
            int index0 = iterator.byteAt(index + 1);
            int constIndex = index0;
            if (op == Opcode.LDC_W)
            {
               int index1 = iterator.byteAt(index + 2);
               constIndex = (index0 << 8) + index1;
View Full Code Here

Examples of javassist.bytecode.CodeIterator.byteAt()

         {
            int index0 = iterator.byteAt(index + 1);
            int constIndex = index0;
            if (op == Opcode.LDC_W)
            {
               int index1 = iterator.byteAt(index + 2);
               constIndex = (index0 << 8) + index1;
            }
            if (7 == constPool.getTag(constIndex))
            {
               String className = constPool.getClassInfo(constIndex);
View Full Code Here

Examples of javassist.bytecode.CodeIterator.byteAt()

         */
        CodeIterator iterator = minfo.getCodeAttribute().iterator();
        while (iterator.hasNext()) {
            try {
                int pos = iterator.next();
                int c = iterator.byteAt(pos);

                if (c == AALOAD)
                    initFrames(clazz, minfo);

                if (c == AALOAD || c == BALOAD || c == CALOAD || c == DALOAD
View Full Code Here

Examples of javassist.bytecode.CodeIterator.byteAt()

         */
        CodeIterator iterator = minfo.getCodeAttribute().iterator();
        while (iterator.hasNext()) {
            try {
                int pos = iterator.next();
                int c = iterator.byteAt(pos);

                if (c == AALOAD)
                    initFrames(clazz, minfo);

                if (c == AALOAD || c == BALOAD || c == CALOAD || c == DALOAD
View Full Code Here

Examples of net.hydromatic.avatica.ByteString.byteAt()

    SqlTypeName sqlType = literal.getType().getSqlTypeName();

    switch (sqlType) {
    case BINARY:
      ByteString bs = (ByteString) literal.getValue();
      val = bs.byteAt(0);
      type = HiveParser.BigintLiteral;
      break;
    case TINYINT:
      if (useTypeQualInLiteral) {
        val = literal.getValue3() + "Y";
View Full Code Here

Examples of org.apache.http.io.ByteArrayBuffer.byteAt()

        }
        assertEquals(8, buffer.capacity());
        assertEquals(6, buffer.length());
       
        for (int i = 0; i < tmp.length; i++) {
            assertEquals(tmp[i], buffer.byteAt(i));
        }
    }
   
    public void testSetLength() throws Exception {
      ByteArrayBuffer buffer = new ByteArrayBuffer(4);
View Full Code Here

Examples of org.apache.http.io.ByteArrayBuffer.byteAt()

      byte[] b2 = buffer.toByteArray();
      assertNotNull(b2);
      assertEquals(4, b2.length);
      for (int i = 0; i < tmp.length; i++) {
          assertEquals(tmp[i], b2[i]);
          assertEquals(tmp[i], buffer.byteAt(i));
      }
      buffer.clear();
      assertEquals(16, buffer.capacity());
      assertEquals(0, buffer.length());
      assertTrue(buffer.isEmpty());
View Full Code Here

Examples of org.apache.http.io.ByteArrayBuffer.byteAt()

      byte[] b2 = buffer.toByteArray();
      assertNotNull(b2);
      assertEquals(4, b2.length);
      for (int i = 0; i < tmp.length; i++) {
          assertEquals(tmp[i], b2[i]);
          assertEquals(tmp[i], buffer.byteAt(i));
      }
      buffer.clear();
      assertEquals(16, buffer.capacity());
      assertEquals(0, buffer.length());
      assertTrue(buffer.isEmpty());
View Full Code Here

Examples of org.apache.http.io.ByteArrayBuffer.byteAt()

        }
        assertEquals(8, buffer.capacity());
        assertEquals(6, buffer.length());
       
        for (int i = 0; i < tmp.length; i++) {
            assertEquals(tmp[i], buffer.byteAt(i));
        }
    }
   
    public void testSetLength() throws Exception {
      ByteArrayBuffer buffer = new ByteArrayBuffer(4);
View Full Code Here

Examples of org.apache.http.util.ByteArrayBuffer.byteAt()

      byte[] b2 = buffer.toByteArray();
      assertNotNull(b2);
      assertEquals(4, b2.length);
      for (int i = 0; i < tmp.length; i++) {
          assertEquals(tmp[i], b2[i]);
          assertEquals(tmp[i], buffer.byteAt(i));
      }
      buffer.clear();
      assertEquals(16, buffer.capacity());
      assertEquals(0, buffer.length());
      assertTrue(buffer.isEmpty());
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.