This is the first "stable" release of ext-encoding. That being said, test with caution.
No BC-breaking changes will be made to the API in the 1.x series.
Changes since 0.5.1
- Project is now licensed under the MIT license
- Removed array-of-type functions. In practice, these weren't useful because they didn't account for outside performance costs of storing data in arrays more generally. These will probably come back in a different form at a later date, but they were considered non-essential for a stable release.
- Added
pack*(T $value) : stringandunpack*(string $bytes) : Tcounterparts to all staticreadandwritemethods. These can be used to replace usages of one-shotBinary::methods inpocketmine/binaryutils. ByteBufferReader->getUnreadLength()- returns the number of bytes left to read from the current offset.- Improved performance of
ByteBufferWriterby 5-6% by dropping use ofzend_string. - Improved varint encode performance by 10% by avoiding
memcpy()calls.