Peek the buffer size needed before unpacking packets.