Skip to content

Commit

Permalink
Added public MIDIUnsignedInteger conformance to custom UInt types
Browse files Browse the repository at this point in the history
  • Loading branch information
orchetect committed Sep 1, 2022
1 parent d2a61da commit 723d8c9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/MIDIKitCore/Types/UInt14.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import MIDIKitInternals
/// A 14-bit unsigned integer value type used in `MIDIKit`.
///
/// Formed as from two bytes (MSB, LSB) as `(MSB << 7) + LSB` where MSB and LSB are 7-bit values.
public struct UInt14: _MIDIUnsignedInteger {
public struct UInt14: MIDIUnsignedInteger, _MIDIUnsignedInteger {
public typealias Storage = UInt16
var storage: Storage
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MIDIKitCore/Types/UInt25.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation
import MIDIKitInternals

/// A 25-bit unsigned integer value type used in `MIDIKit`.
public struct UInt25: _MIDIUnsignedInteger {
public struct UInt25: MIDIUnsignedInteger, _MIDIUnsignedInteger {
public typealias Storage = UInt32
var storage: Storage
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MIDIKitCore/Types/UInt4.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation
import MIDIKitInternals

/// A 4-bit unsigned integer value type used in `MIDIKit`.
public struct UInt4: _MIDIUnsignedInteger {
public struct UInt4: MIDIUnsignedInteger, _MIDIUnsignedInteger {
public typealias Storage = UInt8
var storage: Storage
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MIDIKitCore/Types/UInt7.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation
import MIDIKitInternals

/// A 7-bit unsigned integer value type used in `MIDIKit`.
public struct UInt7: _MIDIUnsignedInteger {
public struct UInt7: MIDIUnsignedInteger, _MIDIUnsignedInteger {
public typealias Storage = UInt8
var storage: Storage
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MIDIKitCore/Types/UInt9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Foundation
import MIDIKitInternals

/// A 9-bit unsigned integer value type used in `MIDIKit`.
public struct UInt9: _MIDIUnsignedInteger {
public struct UInt9: MIDIUnsignedInteger, _MIDIUnsignedInteger {
public typealias Storage = UInt16
var storage: Storage
}
Expand Down

0 comments on commit 723d8c9

Please sign in to comment.