Examples of readShort()


Examples of org.msgpack.unpacker.Converter.readShort()

  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeShort(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        short ret = unpacker.readShort();
        assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  MessagePack msgpack = new JSON();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeShort(v);
  byte[] bytes = packer.toByteArray();
        Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  MessagePack msgpack = new JSON();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeShort(v);
  byte[] bytes = packer.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  MessagePack msgpack = new MessagePack();
  BufferPacker packer = msgpack.createBufferPacker();
  packer.writeShort(v);
  byte[] bytes = packer.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeShort(v);
  byte[] bytes = out.toByteArray();
  Unpacker unpacker = msgpack.createBufferUnpacker(bytes);
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeShort(v);
  byte[] bytes = out.toByteArray();
  Unpacker unpacker = msgpack.createUnpacker(new ByteArrayInputStream(bytes));
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.msgpack.unpacker.Unpacker.readShort()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  packer.writeShort(v);
  ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
  Unpacker unpacker = msgpack.createUnpacker(in);
  short ret = unpacker.readShort();
  assertEquals(v, ret);
    }

    @Test @Override
    public void testInteger() throws Exception {
View Full Code Here

Examples of org.objectweb.asm.ClassReader.readShort()

      reader = new ClassReader(b);

      classReaderCache.put(className, new SoftReference<ClassReader>(reader));

      // class file version should not be higher than target
      int version = reader.readShort(6); // get major number only
      if (version > target) {
        invalidClassVersion(className.replace('/', '.'), target, version);
      }
    }
    return reader;   
View Full Code Here

Examples of org.voltdb.messaging.FastDeserializer.readShort()

        super(buffer);
       
        FastDeserializer fds = new FastDeserializer(buffer);
        short _block_id;
        try {
            _block_id = fds.readShort();
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }
        this.block_id = _block_id;
    }
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.