Examples of Buffer


Examples of PTMF.Buffer

      is = s.getInputStream();
      os = s.getOutputStream();

      // Crear buffer de procesamiento
      this.bufferRx = new Buffer(longBuffer);
      this.bufferTx = new Buffer(longBuffer);

      //Resetear variables

      while(s.isConnected())
      {
View Full Code Here

Examples of abstrasy.Buffer

        this.setOptAccessList(new OptAccessList(DEFAULT_OPTIONS));
    }

    public Node external_encrypt(Node startAt) throws Exception {
        startAt.isGoodArgsCnt(2);
        Buffer src = ((External_Buffer) AExtTools.getArgExternalInstance(startAt, 1, External_Buffer.class, Node.ACCESSVTYPE_MUTABLE_WRITELOCK)).getBuffer();
        Cipher cipher = Cipher.getInstance("Blowfish");
        cipher.init(Cipher.ENCRYPT_MODE, secretKey);
        External_Buffer res = new External_Buffer();
        Buffer bu = new Buffer(cipher.doFinal(src.getArray()));
        res.setBuffer(bu);
        return Node.createExternal(res);
    }
View Full Code Here

Examples of br.org.scadabr.dnp34j.master.common.utils.Buffer

  public synchronized void send(Buffer aFrame) throws Exception {
    appRcv.push(aFrame, false);
  }

  public Buffer buildReadStaticDataMsg() {
    Buffer request = new Buffer(S);

    request = appSnd.buildRequestMsg(READ, CLASS_STATIC, CLASS_0_VAR,
        WITHOUT_DATA);

    return request;
View Full Code Here

Examples of com.google.collide.client.editor.Buffer

    updatePopupDummyElementWidth();
  }

  private void updatePopupDummyElementWidth() {
    if (startAnchor != null && endAnchor != null) {
      Buffer buffer = editor.getBuffer();
      int left = buffer.calculateColumnLeft(startAnchor.getLine(), startAnchor.getColumn());
      popupDummyElement.getStyle().setWidth(
          buffer.calculateColumnLeft(endAnchor.getLine(), endAnchor.getColumn() + 1) - left,
          CSSStyleDeclaration.Unit.PX);
    }
  }
View Full Code Here

Examples of com.googlecode.gwtgl.wrapper.Buffer

  /**
   * Initializes the buffers for vertex coordinates, normals and texture
   * coordinates.
   */
  private void initBuffers() {
    buffer = new Buffer(webGLWrapper, BufferTarget.ARRAY_BUFFER,
        BufferUsage.STATIC_DRAW);
    buffer.addData(VERTICES, new FloatArray(cube.getVertices()));
    buffer.addData(TEX_COORDS, new FloatArray(cube.getTexCoords()));

    checkErrors();
View Full Code Here

Examples of com.jcraft.jogg.Buffer

        opb.write(1, 1);
        return (0);
    }

    public int header_out(Packet op) {
        Buffer opb = new Buffer();
        opb.writeinit();

        if (pack(opb) != 0)
            return OV_EIMPL;

        op.packet_base = new byte[opb.bytes()];
        op.packet = 0;
        op.bytes = opb.bytes();
        System.arraycopy(opb.buffer(), 0, op.packet_base, 0, op.bytes);
        op.b_o_s = 0;
        op.e_o_s = 0;
        op.granulepos = 0;
        return 0;
    }
View Full Code Here

Examples of com.mysql.jdbc.Buffer

      this.password = password;
    }

    public boolean nextAuthenticationStep(Buffer fromServer, List<Buffer> toServer) throws SQLException {
        toServer.clear();
        Buffer bresp = new Buffer(StringUtils.getBytes(this.password));
        toServer.add(bresp);
      return true;
    }
View Full Code Here

Examples of com.onionnetworks.util.Buffer

  private static final void encodeDecode(FECCode encode, FECCode decode, int index[]) {
    byte[] src = new byte[KK * PACKET_SIZE];
    Util.rand.nextBytes(src);
    Buffer[] srcBufs = new Buffer[KK];
    for (int i = 0; i < srcBufs.length; i++)
      srcBufs[i] = new Buffer(src, i * PACKET_SIZE, PACKET_SIZE);

    byte[] repair = new byte[KK * PACKET_SIZE];
    Buffer[] repairBufs = new Buffer[KK];
    for (int i = 0; i < repairBufs.length; i++) {
      repairBufs[i] = new Buffer(repair, i * PACKET_SIZE, PACKET_SIZE);
    }

    encode.encode(srcBufs, repairBufs, index);
    decode.decode(repairBufs, index);

View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter2.recipe6.task.Buffer

    FileMock mock=new FileMock(101, 10);
   
    /**
     * Creates a buffer with a maximum of 20 lines
     */
    Buffer buffer=new Buffer(20);
   
    /**
     * Creates a producer and a thread to run it
     */
    Producer producer=new Producer(mock, buffer);
View Full Code Here

Examples of com.peterhi.runtime.Buffer

    }
  }
 
  @Test
  public void testSizeFunctions() throws Exception {
    Buffer testBuffer = new Buffer(1);
    assertEquals(0, testBuffer.readable());
    assertEquals(Byte.SIZE, testBuffer.writable());
    assertEquals(0, testBuffer.written());
    assertEquals(1, testBuffer.size());
  }
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.