|
|
3 anni fa | |
|---|---|---|
| .. | ||
| examples | 3 anni fa | |
| src | 3 anni fa | |
| tests | 3 anni fa | |
| .gitignore | 3 anni fa | |
| .scrutinizer.yml | 3 anni fa | |
| .travis.yml | 3 anni fa | |
| README.md | 3 anni fa | |
| build.xml | 3 anni fa | |
| composer.json | 3 anni fa | |
| phpunit.xml | 3 anni fa | |
| validate_examples.sh | 3 anni fa | |
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.