Releases: wapmorgan/BinaryStream
0.4.0: Change isEnd() internals
0.3.0: Extract readChars($count) method
Splitted readChar($count = 1)
into two methods:
readChar()
- reads one char and returns itreadChars($count)
- reads few chars and returns an array with them
0.2.3: Full support of integers
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
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
- Added support for rare
integer
sizes inreadInteger()
:24, 40, 48 and 56
bits
0.2.0
-
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 fromc
toi
(integer) and set field size to8
. -
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
Fixed alignment in readGroup()
and all read-functions (readChar(), readInteger(), readFloat(), readString()
).
0.1.5: Update in compare() method
Added possibility to pass array of bytes or chars in compare()
.
0.1.4: New isEnd() method
Added method to check if file end is reached.
0.1.3: Minimal PHP version is 5.3.3
Reduced minimal PHP version.