11
11
/// The containing integer.
12
12
public var container : Wrapped
13
13
/// Which sub-word is to be treated as the first element.
14
- public let endianness : EmbeddedIteratorDirection
14
+ public let endianness : EmbeddedIterationDirection
15
15
16
16
/// Creates a collection vending elements of the given type embedded in
17
17
/// the given value,
38
38
public init (
39
39
embedding type: Element . Type = Element . self,
40
40
within container: Wrapped = 0 ,
41
- iteratingFrom bitRange: EmbeddedIteratorDirection
41
+ iteratingFrom bitRange: EmbeddedIterationDirection
42
42
) {
43
43
self . container = container
44
44
endianness = bitRange
64
64
public init (
65
65
repeating element: Element ,
66
66
embeddedIn type: Wrapped . Type = Wrapped . self,
67
- iteratingFrom bitRange: EmbeddedIteratorDirection
67
+ iteratingFrom bitRange: EmbeddedIterationDirection
68
68
) {
69
69
self . init (
70
70
within: Wrapped ( element) &* Self . allEmbeddedOnes,
75
75
76
76
/// Indicator for which direction embedded integer elements should be
77
77
/// read within their containing integer.
78
- public enum EmbeddedIteratorDirection : Codable , Sendable , BitwiseCopyable {
78
+ public enum EmbeddedIterationDirection : Codable , Sendable , BitwiseCopyable {
79
79
/// Use the highest sub-word as the first element.
80
80
///
81
81
/// Subsequent elements will be at progressively lower bit offsets.
@@ -86,7 +86,7 @@ public enum EmbeddedIteratorDirection: Codable, Sendable, BitwiseCopyable {
86
86
case leastSignificantFirst
87
87
}
88
88
89
- extension EmbeddedIteratorDirection : CaseIterable { }
89
+ extension EmbeddedIterationDirection : CaseIterable { }
90
90
91
91
// MARK: Base Behaviors
92
92
@@ -431,7 +431,7 @@ extension EmbeddedIntegerCollection {
431
431
public init ? < T: IteratorProtocol < Element > > (
432
432
extractingFrom iterator: inout T ,
433
433
embeddingInto type: Wrapped . Type = Wrapped . self,
434
- fillingFrom bitRange: EmbeddedIteratorDirection
434
+ fillingFrom bitRange: EmbeddedIterationDirection
435
435
) {
436
436
self . init ( iteratingFrom: bitRange)
437
437
@@ -487,7 +487,7 @@ extension EmbeddedIntegerCollection {
487
487
readingFrom sequence: T ,
488
488
embeddingInto type: Wrapped . Type = Wrapped . self,
489
489
requireEverythingRead readAll: Bool ,
490
- fillingFrom bitRange: EmbeddedIteratorDirection
490
+ fillingFrom bitRange: EmbeddedIterationDirection
491
491
) {
492
492
var iterator = sequence. makeIterator ( )
493
493
self . init (
0 commit comments