/** * Appends another fast buffer to this one. */public FastShortBuffer append(FastShortBuffer buff) {
if (buff.size == 0) {
returnthis;
}
for (int i = 0; i < buff.currentBufferIndex; i++) {
append(buff.buffers[i]);
}
append(buff.currentBuffer, 0, buff.offset);
returnthis;
}
/** * Appends another fast buffer to this one. */public FastShortBuffer append(FastShortBuffer buff) {
if (buff.size == 0) {
returnthis;
}
for (int i = 0; i < buff.currentBufferIndex; i++) {
append(buff.buffers[i]);
}
append(buff.currentBuffer, 0, buff.offset);
returnthis;
}