We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e3761 commit c7d53b8Copy full SHA for c7d53b8
Sources/BinaryKit/BinaryKit.swift
@@ -41,6 +41,16 @@ public struct Binary {
41
return bitCursor + (bytes * byteSize)
42
}
43
44
+ /// Increments the `bitCursor`-value by the given `bits`.
45
+ private mutating func incrementCursorBy(bits: Int) {
46
+ bitCursor = incrementedCursorBy(bits: bits)
47
+ }
48
+
49
+ /// Increments the `bitCursor`-value by the given `bytes`.
50
+ private mutating func incrementCursorBy(bytes: Int) {
51
+ bitCursor = incrementedCursorBy(bytes: bytes)
52
53
54
/// Sets the reading cursor back to its initial value.
55
public mutating func resetCursor() {
56
self.bitCursor = 0
0 commit comments