ring: allow peeking without vector

Allow peeking into the buffer without actually passing a vector. Makes it
easy to test whether the buffer is empty or not.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>