/** * 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()); }
/** * 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()); }