Get the buffer at idx.
You must make sure that idx does not exceed the number of
the buffer at idx in group
or NULL when there is no buffer. The buffer remains valid as
long as list is valid and buffer is not removed from the list.