buffer~ contents to peek~ to preset?

found an old thread on here that says:
"if you do want to store the contents of a buffer in the
pattr system you can do so by filling a pattr with a list of values that
represent each sample of the buffer, which you can get using a peek~ object."
This sounds really great. I’m planning on catching lots of samples on the fly, it would be great to be able to save those sounds into a pattr preset without having to actually commit the buffer contents to an audio file and save it on the computer. Just a shift click and away I go. Is this possible? if so…. How?