Examples of appendByte()


Examples of org.smpp.util.ByteBuffer.appendByte()

    markValueSet();
  }

  protected ByteBuffer getValueData() throws ValueNotSetException {
    ByteBuffer valueBuf = new ByteBuffer();
    valueBuf.appendByte(getValue());
    return valueBuf;
  }

  public void setValue(byte p_value) {
    value = p_value;
View Full Code Here

Examples of org.smpp.util.ByteBuffer.appendByte()

   * Creates byt buffer containing one unsigned byte.
   * @return the byte buffer with one unsingned byte
   */
  protected ByteBuffer getValueData() throws ValueNotSetException {
    ByteBuffer valueBuf = new ByteBuffer();
    valueBuf.appendByte(encodeUnsigned(getValue()));
    return valueBuf;
  }

  /**
   * Sets the value of the TLV to the new value.
View Full Code Here

Examples of org.vertx.java.core.buffer.Buffer.appendByte()

         */
        @Override
        public void write(int b) throws IOException {
            checkState();
            Buffer buffer = new Buffer();
            buffer.appendByte((byte) b);
            response.write(buffer);
        }

        /**
         * {@inheritDoc}
 
View Full Code Here

Examples of org.vertx.java.core.buffer.Buffer.appendByte()

        @Override
        public void write(final int b) throws IOException {
            checkState();
            final Buffer buffer = new Buffer();
            buffer.appendByte((byte) b);
            response.write(buffer);
        }

        @Override
        public void write(final byte[] b) throws IOException {
View Full Code Here

Examples of org.vertx.java.core.buffer.Buffer.appendByte()

        headers.add("content-length", "1024");

        Buffer body = new Buffer(1024);

        for (int i=0; i < 1024; i++) {
            body.appendByte((byte) 'A');
        }

        new YokeTester(yoke).request("GET", "/", headers, body, new Handler<Response>() {
            @Override
            public void handle(Response resp) {
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.