Example #1
0
 /**
  * Sets the bytes at position <code>pos</code> in the Buffer to the bytes represented by the
  * <code>Buffer b</code> on the given <code>offset</code> and <code>len</code>.
  *
  * <p>The buffer will expand as necessary to accommodate any value written.
  *
  * @param pos
  * @param b
  * @param offset
  * @param len
  * @return
  */
 public Buffer setBuffer(int pos, Buffer b, int offset, int len) {
   this.delegate.setBuffer(pos, (io.vertx.core.buffer.Buffer) b.getDelegate(), offset, len);
   return this;
 }
Example #2
0
 /**
  * Appends the specified <code>Buffer</code> starting at the <code>offset</code> using <code>len
  * </code> to the end of this Buffer. The buffer will expand as necessary to accommodate any bytes
  * written.
  *
  * <p>Returns a reference to <code>this</code> so multiple operations can be appended together.
  *
  * @param buff
  * @param offset
  * @param len
  * @return
  */
 public Buffer appendBuffer(Buffer buff, int offset, int len) {
   this.delegate.appendBuffer((io.vertx.core.buffer.Buffer) buff.getDelegate(), offset, len);
   return this;
 }
Example #3
0
 /**
  * Sets the bytes at position <code>pos</code> in the Buffer to the bytes represented by the
  * <code>Buffer b</code>.
  *
  * <p>The buffer will expand as necessary to accommodate any value written.
  *
  * @param pos
  * @param b
  * @return
  */
 public Buffer setBuffer(int pos, Buffer b) {
   this.delegate.setBuffer(pos, (io.vertx.core.buffer.Buffer) b.getDelegate());
   return this;
 }
Example #4
0
 /**
  * Appends the specified <code>Buffer</code> to the end of this Buffer. The buffer will expand as
  * necessary to accommodate any bytes written.
  *
  * <p>Returns a reference to <code>this</code> so multiple operations can be appended together.
  *
  * @param buff
  * @return
  */
 public Buffer appendBuffer(Buffer buff) {
   this.delegate.appendBuffer((io.vertx.core.buffer.Buffer) buff.getDelegate());
   return this;
 }