We propose a novel all-optical buffer and shaper based on the adjustable power transferring characteristics of the complex-modulated long-period-grating coupler (CM-LPGC) and the multiple circulations of the self-closed fiber loop. By turning on the external optical pumps, the signals can be stored