@@ -59,8 +59,8 @@ public final class MsbBitReader: ByteReader, BitReader {
5959 /**
6060 Reads `count` bits and returns them as a `Int` number, advancing by `count` BIT positions.
6161
62- - Precondition: There MUST be enough data left.
6362 - Precondition: Parameter `fromBits` MUST not be less than 0.
63+ - Precondition: There MUST be enough data left.
6464 */
6565 public func int( fromBits count: Int ) -> Int {
6666 precondition ( count >= 0 )
@@ -113,9 +113,8 @@ public final class MsbBitReader: ByteReader, BitReader {
113113 /**
114114 Reads byte and returns it, advancing by one BYTE position.
115115
116- - Warning: Doesn't check if there is any data left. It is advisable to use `isFinished` BEFORE calling this method
117- to check if the end is reached.
118116 - Precondition: Reader MUST be aligned.
117+ - Precondition: There MUST be enough data left.
119118 */
120119 public override func byte( ) -> UInt8 {
121120 precondition ( isAligned, " BitReader is not aligned. " )
@@ -125,9 +124,8 @@ public final class MsbBitReader: ByteReader, BitReader {
125124 /**
126125 Reads `count` bytes and returns them as an array of `UInt8`, advancing by `count` BYTE positions.
127126
128- - Warning: Doesn't check if there is any data left. It is advisable to use `isFinished` BEFORE calling this method
129- to check if the end is reached.
130127 - Precondition: Reader MUST be aligned.
128+ - Precondition: There MUST be enough data left.
131129 */
132130 public override func bytes( count: Int ) -> [ UInt8 ] {
133131 precondition ( isAligned, " BitReader is not aligned. " )
@@ -137,9 +135,8 @@ public final class MsbBitReader: ByteReader, BitReader {
137135 /**
138136 Reads 8 bytes and returns them as a `UInt64` number, advancing by 8 BYTE positions.
139137
140- - Warning: Doesn't check if there is any data left. It is advisable to use `isFinished` BEFORE calling this method
141- to check if the end is reached.
142138 - Precondition: Reader MUST be aligned.
139+ - Precondition: There MUST be enough data left.
143140 */
144141 public override func uint64( ) -> UInt64 {
145142 precondition ( isAligned, " BitReader is not aligned. " )
@@ -149,9 +146,8 @@ public final class MsbBitReader: ByteReader, BitReader {
149146 /**
150147 Reads 4 bytes and returns them as a `UInt32` number, advancing by 4 BYTE positions.
151148
152- - Warning: Doesn't check if there is any data left. It is advisable to use `isFinished` BEFORE calling this method
153- to check if the end is reached.
154149 - Precondition: Reader MUST be aligned.
150+ - Precondition: There MUST be enough data left.
155151 */
156152 public override func uint32( ) -> UInt32 {
157153 precondition ( isAligned, " BitReader is not aligned. " )
@@ -161,9 +157,8 @@ public final class MsbBitReader: ByteReader, BitReader {
161157 /**
162158 Reads 2 bytes and returns them as a `UInt16` number, advancing by 2 BYTE positions.
163159
164- - Warning: Doesn't check if there is any data left. It is advisable to use `isFinished` BEFORE calling this method
165- to check if the end is reached.
166160 - Precondition: Reader MUST be aligned.
161+ - Precondition: There MUST be enough data left.
167162 */
168163 public override func uint16( ) -> UInt16 {
169164 precondition ( isAligned, " BitReader is not aligned. " )
0 commit comments