Examples of readByte()


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

  MessagePack msgpack = new MessagePack();
        Unconverter packer = new Unconverter(msgpack);
        packer.writeByte(v);
        Value r = packer.getResult();
        Converter unpacker = new Converter(msgpack, r);
        byte ret = unpacker.readByte();
        assertEquals(v, ret);
    }

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

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

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

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

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

            }

            char[] charBuffer = new char[reader.getMaxStringLength()];
            for (int i = 1; i < reader.getItemCount(); i++) {
                int itemOffset = reader.getItem(i);
                if (itemOffset > 0 && reader.readByte(itemOffset - 1) == 7) {
                    // A CONSTANT_Class entry, read the class descriptor
                    String classDescriptor = reader.readUTF8(itemOffset, charBuffer);
                    Type type = Type.getObjectType(classDescriptor);
                    while (type.getSort() == Type.ARRAY) {
                        type = type.getElementType();
View Full Code Here

Examples of org.persvr.util.BufferedDataInput.readByte()

  void readNames() throws IOException {
    BufferedDataInput namesInput = new BufferedDataInput(namesFile);
    while (namesInput.getFilePointer() < namesInput.length()) {
      int pointer = (int) namesInput.getFilePointer();
      byte block = namesInput.readByte();
      String propName = namesInput.readString();
      switch (block) {
      case NAMES_HEADER_TABLE_NAME:
      case NAMES_HEADER_SUB_TABLE_NAME:
        tableNameIds.put(propName, pointer);
View Full Code Here

Examples of org.tmatesoft.hg.internal.InflaterDataAccess.readByte()

    DataAccess zip = zip(testContent1);
    InflaterDataAccess ida = new InflaterDataAccess(zip, 0, zip.length(), -1, new Inflater(), new byte[25], null);
    ida.skip(10);
    byte[] chunk1 = new byte[22];
    ida.readBytes(chunk1, 0, 20);
    chunk1[20] = ida.readByte();
    chunk1[21] = ida.readByte();
    ida.skip(5);
    byte[] chunk2 = new byte[12];
    chunk2[0] = ida.readByte();
    chunk2[1] = ida.readByte();
View Full Code Here

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

        int count = m_data.getInt();
        for (int i=0; i < count; i++) {
            ArrayList<VoltType> types = new ArrayList<VoltType>();
            ArrayList<String> names = new ArrayList<String>();

            byte is_replicated = fds.readByte();
            int p_id = fds.readInt();
            long t_id = fds.readLong();
            String t_name = fds.readString();
            int colcnt = fds.readInt();
            for (int jj = 0; jj < colcnt; jj++) {
View Full Code Here

Examples of org.xlightweb.client.HttpClientConnection.readByte()

    Assert.assertTrue(header.indexOf("200") != -1);
    Assert.assertTrue(header.indexOf("Connection: close") != -1);
    Assert.assertEquals("<html>this ...", con.readStringByLength(14));
   
    try {
      con.readByte();
      Assert.fail("ClosedChannelException expected");
    } catch (ClosedChannelException expected) { }
   
   
    oldServer.close();
View Full Code Here

Examples of org.xsocket.connection.BlockingConnection.readByte()

    String header = con.readStringByDelimiter("\r\n\r\n");
    Assert.assertTrue(header.indexOf("OK") != -1);
    Assert.assertEquals("test123456", con.readStringByLength(10));
   
    try {
      con.readByte();
      Assert.fail("ClosedChannelException expected");
    } catch (ClosedChannelException expected) { }
   
    con.close();
    server.close();
View Full Code Here

Examples of org.xsocket.connection.IBlockingConnection.readByte()

    String header = con.readStringByDelimiter("\r\n\r\n");
    Assert.assertTrue(header.indexOf("OK") != -1);
    Assert.assertEquals("test123456", con.readStringByLength(10));
   
    try {
      con.readByte();
      Assert.fail("ClosedChannelException expected");
    } catch (ClosedChannelException expected) { }
   
    con.close();
    server.close();
View Full Code Here

Examples of ucar.unidata.io.RandomAccessFile.readByte()

      }

      // read variable names
      for (i=0; i<gridparms; i++) {
        char[] name = new char[4];
        for (int q=0; q<4; q++) name[q] = (char) f.readByte();

        // remove trailing spaces, if any
        for (j=3; j>0; j--) {
          if (name[j] == ' ' || name[j] == 0) name[j] = 0;
          else break;
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.