A 'contains' method for buffered inports