Skip to content

Releases: wapmorgan/BinaryStream

0.4.0: Change isEnd() internals

18 Jun 01:04
Compare
Choose a tag to compare

Changed the way isEnd() checks the end of file. Now it does not use feof() call.
Need to check your code using this method. If you don't, you can safely upgrade.

0.3.0: Extract readChars($count) method

03 Jun 18:30
Compare
Choose a tag to compare

Splitted readChar($count = 1) into two methods:

  • readChar() - reads one char and returns it
  • readChars($count) - reads few chars and returns an array with them

0.2.3: Full support of integers

21 Apr 19:22
Compare
Choose a tag to compare

Now BinaryStreams fully supports integers on all platforms and interpretator versions:

  • Added full support for reading of 64-bit integers on PHP lower 5.6.3.
  • Added full support for reading integers with non-standard sizes in groups.
  • Added support for writing 64-bit integers and integers with non-standard size.

Minimal required PHP version is 5.3 now.

0.2.2: Full support of float and double

10 Apr 23:11
Compare
Choose a tag to compare

Now BinaryStream really supports float's and double's written both in Big or Little-endian.
Before it was depending on machine where interpretator works.

0.2.1: Support for rare int sizes

05 Apr 21:38
Compare
Choose a tag to compare
  • Added support for rare integer sizes in readInteger(): 24, 40, 48 and 56 bits

0.2.0

05 Mar 21:43
Compare
Choose a tag to compare
  • Backward-incompatible change: reading chars in readGroup() returns original chars, not their code now! Be sure to update groups definitions. Just change type of field from c to i (integer) and set field size to 8.

  • Added possibility to set marks at negative offsets in markOffset().

  • Added possibility to read/write integers in 8 bytes.

  • Added possibility for explicit speicification of bit field in group defitinions with b: prefix.

0.1.6: Fix alignment

09 Feb 16:05
Compare
Choose a tag to compare

Fixed alignment in readGroup() and all read-functions (readChar(), readInteger(), readFloat(), readString()).

0.1.5: Update in compare() method

06 Feb 22:06
Compare
Choose a tag to compare

Added possibility to pass array of bytes or chars in compare().

0.1.4: New isEnd() method

06 Feb 15:46
Compare
Choose a tag to compare

Added method to check if file end is reached.

0.1.3: Minimal PHP version is 5.3.3

05 Feb 20:09
Compare
Choose a tag to compare

Reduced minimal PHP version.