|
|
há 3 anos atrás | |
|---|---|---|
| .. | ||
| examples | há 3 anos atrás | |
| src | há 3 anos atrás | |
| tests | há 3 anos atrás | |
| .gitignore | há 3 anos atrás | |
| .scrutinizer.yml | há 3 anos atrás | |
| .travis.yml | há 3 anos atrás | |
| README.md | há 3 anos atrás | |
| build.xml | há 3 anos atrás | |
| composer.json | há 3 anos atrás | |
| phpunit.xml | há 3 anos atrás | |
| validate_examples.sh | há 3 anos atrás | |
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.