. */ /** * Processes bytes as they pass through a stream and performs filtering. * @package Swift * @author Chris Corbyn */ interface Swift_StreamFilter { /** * Based on the buffer given, this returns true if more buffering is needed. * @param mixed $buffer * @return boolean */ public function shouldBuffer($buffer); /** * Filters $buffer and returns the changes. * @param mixed $buffer * @return mixed */ public function filter($buffer); }