Allow capacity and length to be different for user buffers