Пример #1
0
 /**
  * Initializes the buffer to another buffer. Note that it makes a copy, it doesn't share the data.
  *
  * @param b The original buffer.
  */
 public Buffer(Buffer b) {
   this();
   addChars(b.getBufferChar());
 }
Пример #2
0
 /**
  * Adds another buffer to the end of the buffer. All it actually does is add the bytes of the
  * source to the current buffer.
  *
  * @param b The buffer to add.
  */
 public void addBuffer(Buffer b) {
   addBytes(b.getBuffer());
 }