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.
- Host: GitHub
- URL: https://github.com/dflydev/dflydev-snort-buffer
- Owner: dflydev
- License: mit
- Created: 2013-01-13T01:40:50.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-01-13T17:20:06.000Z (over 13 years ago)
- Last Synced: 2025-07-03T03:02:52.885Z (12 months ago)
- Language: PHP
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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