get a whole buffer out (dumpBuffer)