This used to get the entire array from the buffer, even if the buffer wasn't full...