File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ public protocol BitReader: class {
1111 /// True, if reader's BIT pointer is aligned with the BYTE border.
1212 var isAligned : Bool { get }
1313
14- /// Creates an instance for reading `data`.
14+ /// Creates an instance for reading bits (and bytes) from `data`.
1515 init ( data: Data )
1616
1717 /// Reads bit and returns it, advancing by one BIT position.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public protocol BitWriter {
1414 /// True, if writer's BIT pointer is aligned with the BYTE border.
1515 var isAligned : Bool { get }
1616
17- /// Creates an instance for writing.
17+ /// Creates an instance for writing bits (and bytes) .
1818 init ( )
1919
2020 /// Writes `bit`, advancing by one BIT position.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class ByteReader {
2727 return self . data. endIndex <= self . offset
2828 }
2929
30- /// Creates an instance for reading `data`.
30+ /// Creates an instance for reading bytes from `data`.
3131 public init ( data: Data ) {
3232 self . size = data. count
3333 self . data = data
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public final class LsbBitWriter: BitWriter {
2222 return self . bitMask == 1
2323 }
2424
25- /// Creates an instance for writing.
25+ /// Creates an instance for writing bits (and bytes) .
2626 public init ( ) { }
2727
2828 /// Writes `bit`, advancing by one BIT position.
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public final class MsbBitWriter: BitWriter {
2222 return self . bitMask == 128
2323 }
2424
25- /// Creates an instance for writing.
25+ /// Creates an instance for writing bits (and bytes) .
2626 public init ( ) { }
2727
2828 /// Writes `bit`, advancing by one BIT position.
You can’t perform that action at this time.
0 commit comments