|
|
пре 3 година | |
|---|---|---|
| .. | ||
| examples | пре 3 година | |
| src | пре 3 година | |
| tests | пре 3 година | |
| .gitignore | пре 3 година | |
| .scrutinizer.yml | пре 3 година | |
| .travis.yml | пре 3 година | |
| README.md | пре 3 година | |
| build.xml | пре 3 година | |
| composer.json | пре 3 година | |
| phpunit.xml | пре 3 година | |
| validate_examples.sh | пре 3 година | |
This library provides a Buffer and Parser class to make dealing with binary data in PHP easier.
Templates extend this by offering a read/write interface for larger serialized structures.
You can install this library via Composer: composer require bitwasp/buffertools
Buffer's are immutable classes to store binary data. Buffer::hex can be used to initialize from hex Buffer::int can be used to initialize from a positive decimal integer (int|string)
Buffer's main methods are:
Parser will read Buffers. Parser's main methods are:
In most cases, the interface offered by Parser should not be used directly. Instead, Templates expose read/write access to larger serialized structures.