- Updated to support Swift 4.1.
- Added
bytesLeft
andbytesRead
computed 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 toLsbBitReader
andMsbBitReader
, as well asBitReader
protocol. int(fromBits:)
function now has a precondition that its argument doesn't exceedInt
bit 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
bitsLeft
andbitsRead
computed properties. - Disable symbol stripping in archives generated by Carthage and published on GitHub Releases.
- Added converting from
ByteReader
initializers toLsbBitReader
andMsbBitReader
, as well asBitReader
protocol. - Added
bitsLeft
andbitsRead
computed properties toLsbBitReader
andMsbBitReader
, as well asBitReader
protocol.
- Fix several problems causing incorrect preconditions failures.
- Increased performance of
bit()
,bits(count:)
andint(fromBits:)
functions for bothLsbBitReader
andMsbBitReader
. - More consistent behaviour (precondition failures) for situtations when there is not enough data left.
- Small updates to documentation.
ByteReader
class for reading bytes.BitReader
protocol,LsbBitReader
andMsbBitReader
classes for reading bits (and bytes).BitWriter
protocol,LsbBitWriter
andMsbBitWriter
classes for writing bits (and bytes).