Skip to content

0.4.0

Pre-release
Pre-release

Choose a tag to compare

@dktapps dktapps released this 10 Jan 17:29
· 51 commits to master since this release
83bb1fa

⚠️ This extension is still experimental. DO NOT use this in production.

The API is still in development and will likely change again before stable release. I'm exploring how best to design it to minimize mistakes while also maximizing readability and intuitiveness.

Changes since 0.3.0

  • Support for PHP 8.4
  • All type read/write functions have been pulled out of ByteBuffer into static methods:
    • readUnsigned*LE, readSigned*LE, and corresponding write methods have been moved to LE:: static methods (e.g. pmmp\encoding\LE::readUnsignedInt($buffer))
    • readUnsigned*BE, readSigned*BE, and corresponding write methods have been moved to BE:: static methods (e.g. pmmp\encoding\BE::readUnsignedInt($buffer))
    • readUnsignedByte, readSignedByte, and corresponding write methods have been moved to Byte:: static methods (e.g. pmmp\encoding\Byte::readUnsignedByte($buffer)
    • readUnsignedVarInt, readSignedVarInt, readUnsignedVarLong, readSignedVarLong and their corresponding write methods have been moved to VarInt:: static methods (e.g. VarInt::readUnsignedVarInt($buffer))
  • BaseByteBuffer removed
  • Restructure of internal extension code