1. A system comprising: a pattern-recognition processor comprising: pattern matching matrices adapted to generate first results based at least in part on searches for one or more values in a data stream, and mask modules adapted to generate second results based at least in part on filtering the first results; and a results buffer, wherein the results buffer includes a plurality of first-in-first-out (FIFO) locations adapted to store the first and second results generated by the pattern-recognition processor.