- Updated to support Swift 4.1.
- Added
bytesLeftandbytesReadcomputed properties toByteReader. - Added
int(fromBytes:),uint16(fromBytes:),uint32(fromBytes:), anduint64(fromBytes:)functions to all readers. - Added
byte(fromBits:),uint16(fromBits:),uint32(fromBits:), anduint64(fromBits:)functions toLsbBitReaderandMsbBitReader, as well asBitReaderprotocol. int(fromBits:)function now has a precondition that its argument doesn't exceedIntbit width.- Reverted "disable symbol stripping" change from 1.1.1 update, since underlying problem in Carthage was fixed.
- Minor updates to documentation.
- Added missing documentation for
bitsLeftandbitsReadcomputed properties. - Disable symbol stripping in archives generated by Carthage and published on GitHub Releases.
- Added converting from
ByteReaderinitializers toLsbBitReaderandMsbBitReader, as well asBitReaderprotocol. - Added
bitsLeftandbitsReadcomputed properties toLsbBitReaderandMsbBitReader, as well asBitReaderprotocol.
- Fix several problems causing incorrect preconditions failures.
- Increased performance of
bit(),bits(count:)andint(fromBits:)functions for bothLsbBitReaderandMsbBitReader. - More consistent behaviour (precondition failures) for situtations when there is not enough data left.
- Small updates to documentation.
ByteReaderclass for reading bytes.BitReaderprotocol,LsbBitReaderandMsbBitReaderclasses for reading bits (and bytes).BitWriterprotocol,LsbBitWriterandMsbBitWriterclasses for writing bits (and bytes).