Skip to content

1.0.0

Latest

Choose a tag to compare

@dktapps dktapps released this 11 Sep 21:23
· 6 commits to master since this release
93fb624

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) : string and unpack*(string $bytes) : T counterparts to all static read and write methods. These can be used to replace usages of one-shot Binary:: methods in pocketmine/binaryutils.
  • ByteBufferReader->getUnreadLength() - returns the number of bytes left to read from the current offset.
  • Improved performance of ByteBufferWriter by 5-6% by dropping use of zend_string.
  • Improved varint encode performance by 10% by avoiding memcpy() calls.