File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public struct Binary {
58
58
59
59
// MARK: - Bit
60
60
61
- /// Returns the binary value `0` or `1` of the given position.
61
+ /// Returns an `UInt8` with the value of 0 or 1 of the given position.
62
62
public func getBit( index: Int ) throws -> UInt8 {
63
63
guard ( 0 ..< ( bytesStore. count) ) . contains ( index / byteSize) else {
64
64
throw BinError . outOfBounds
@@ -78,8 +78,8 @@ public struct Binary {
78
78
}
79
79
}
80
80
81
- /// Returns the binary value `0` or `1` of the given position and
82
- /// increments the reading cursor by one bit.
81
+ /// Returns an `UInt8` with the value of 0 or 1 of the given
82
+ /// position and increments the reading cursor by one bit.
83
83
public mutating func readBit( ) throws -> UInt8 {
84
84
defer { bitCursor = incrementedCursorBy ( bits: 1 ) }
85
85
return try getBit ( index: bitCursor)
You can’t perform that action at this time.
0 commit comments