Skip to content

0.2.0

Compare
Choose a tag to compare
@dktapps dktapps released this 18 May 15:35
· 45 commits to stable since this release
595c4ca

Changes since 0.1.x

  • PHP 7.4 is now required as a minimum.
  • A new Limits class has been added, which contains constants for the bounds of int8, int16, int32, int64, and their unsigned variants.
  • BinaryStream has the following changes:
    • buffer and offset fields are now protected.
    • reset() method has been removed (create a new BinaryStream instead).
    • setBuffer() method has been removed (create a new BinaryStream instead).
    • get() no longer accepts true for the length. To get all the bytes left in the buffer, use getRemaining() instead.
    • BIG_ENDIAN and LITTLE_ENDIAN constants have been removed.
    • All methods which return void now have native void typehints.
  • The global constant ENDIANNESS has been removed. It's no longer needed for anything thanks to the introduction of non-machine-byte-order-dependent pack() codes for floats in PHP 7.2.