Examples of readBytes()


Examples of br.org.scadabr.dnp34j.master.common.utils.Buffer.readBytes()

      getData.writeBytes(newDataObjects[i].data);
      setDB(values[i], newDataObjects[i].data, group, variation);
    }

    return getData.readBytes();
  }

  // public void set(byte group, byte variation, byte[] dataObjects) {
  // set(group, variation, getIndexMin(group), getIndexMax(group),
  // dataObjects);
View Full Code Here

Examples of ch.ethz.inf.vs.scandium.util.DatagramReader.readBytes()

   
    length = reader.read(CERTIFICATE_AUTHORITIES_LENGTH_BITS);
    List<DistinguishedName> certificateAuthorities = new ArrayList<DistinguishedName>();
    while (length > 0) {
      int nameLength = reader.read(CERTIFICATE_AUTHORITY_LENGTH_BITS);
      byte[] name = reader.readBytes(nameLength);
      certificateAuthorities.add(new DistinguishedName(name));
     
      length -= 2 + name.length;
     
    }
View Full Code Here

Examples of ch.ethz.ssh2.packets.TypesReader.readBytes()

      int readLen = tr.readUINT32();

      if ((readLen < 0) || (readLen > len))
        throw new IOException("The server sent an invalid length field.");

      tr.readBytes(dst, dstoff, readLen);

      return readLen;
    }

    if (t != Packet.SSH_FXP_STATUS)
View Full Code Here

Examples of com.alibaba.dubbo.common.serialize.ObjectInput.readBytes()

        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(
                byteArrayOutputStream.toByteArray());
        ObjectInput deserialize = serialization.deserialize(url, byteArrayInputStream);

        assertArrayEquals("123中华人民共和国".getBytes(), deserialize.readBytes());

        try {
            deserialize.readBytes();
            fail();
        } catch (IOException expected) {
View Full Code Here

Examples of com.alibaba.dubbo.remoting.buffer.ChannelBuffer.readBytes()

        ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(1024);

        codec.encode(channel, buffer, request);
        byte[] data = new byte[buffer.readableBytes()];
        buffer.readBytes(data);

        Assert.assertEquals(ret.length, data.length);
        for(int i=0;i<ret.length;i++){
            if (ret[i] != data[i]){
                Assert.fail();
View Full Code Here

Examples of com.esotericsoftware.kryo.io.Input.readBytes()

    ByteBufferInputStream testInputs = new ByteBufferInputStream();
    buf.flip();
    testInputs.setByteBuffer(buf);
    Input input = new Input(testInputs, 512);
    byte[] toRead = new byte[512];
    input.readBytes(toRead);

    input.readBytes(toRead);   
  }
}
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeInput.readBytes()

    }

    final public void read (Input input, Object object) {
      if (bulkReadsSupported && input instanceof UnsafeInput) {
        UnsafeInput unsafeInput = (UnsafeInput)input;
        unsafeInput.readBytes(object, offset, len);
      } else if (bulkReadsSupported && input instanceof UnsafeMemoryInput) {
        UnsafeMemoryInput unsafeInput = (UnsafeMemoryInput)input;
        unsafeInput.readBytes(object, offset, len);
      } else {
        readSlow(input, object);
View Full Code Here

Examples of com.esotericsoftware.kryo.io.UnsafeMemoryInput.readBytes()

      if (bulkReadsSupported && input instanceof UnsafeInput) {
        UnsafeInput unsafeInput = (UnsafeInput)input;
        unsafeInput.readBytes(object, offset, len);
      } else if (bulkReadsSupported && input instanceof UnsafeMemoryInput) {
        UnsafeMemoryInput unsafeInput = (UnsafeMemoryInput)input;
        unsafeInput.readBytes(object, offset, len);
      } else {
        readSlow(input, object);
      }
    }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.airlift.slice.BasicSliceInput.readBytes()

        indexBitLength = input.readByte();
        checkArgument(indexBitLength >= 1 && indexBitLength <= Short.SIZE, "indexBitLength is out of range");

        baseline = input.readByte();
        deltas = new byte[numberOfBuckets(indexBitLength) / 2];
        input.readBytes(deltas);
        overflowBucket = input.readShort();
        overflowValue = input.readByte();

        baselineCount = 0;
        for (int i = 0; i < numberOfBuckets(indexBitLength); i++) {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.readBytes()

        synchronized (z) {
            try {
                // Configure input.
                ChannelBuffer uncompressed = (ChannelBuffer) msg;
                byte[] in = new byte[uncompressed.readableBytes()];
                uncompressed.readBytes(in);
                z.next_in = in;
                z.next_in_index = 0;
                z.avail_in = in.length;

                // Configure output.
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.