An open API service indexing awesome lists of open source software.

https://github.com/dflydev/dflydev-snort-buffer

[READ-ONLY] Subtree split of Dflydev\Snort\Buffer.
https://github.com/dflydev/dflydev-snort-buffer

Last synced: about 2 months ago
JSON representation

[READ-ONLY] Subtree split of Dflydev\Snort\Buffer.

Awesome Lists containing this project

README

          

Snort - Buffer
==============

Byte buffer statistics and analaysis.

Requirements
------------

* PHP 5.3+

Installation
------------

Through [Composer][1] as [dflydev/snort-buffer][2].

Usage
-----

```php
addData($bytes, 0, strlen($bytes));

// Number of occurances of the ASCII letter 'a'.
print $buffer->count(0x61) . "\n";

// Number of occurances of any ASCII character
// between 32-127.
print $buffer->countRange(0x20, 128) . "\n";
```

License
-------

MIT, see LICENSE.

Community
---------

If you have questions or want to help out, join us in the **#dflydev** channel
on **irc.freenode.net** or mention [@dflydev][4] on Twitter.

Not Invented Here
-----------------

This work was heavily influenced by [Apache Tika][3].

[1]: http://getcomposer.org
[2]: https://packagist.org/packages/dflydev/snort
[3]: http://tika.apache.org
[4]: https://twitter.com/dflydev