1
+ import Foundation
1
2
2
3
/// Returns the dsohandle for the dynamic library.
3
4
public func libraryHandle( ) -> UnsafeRawPointer {
@@ -125,8 +126,8 @@ extension IntArray {
125
126
@available ( BackDeploy 1 . 0 , * )
126
127
@_backDeploy ( before: BackDeploy 2.0 )
127
128
public func print( ) {
128
- // Tests recursive @_backDeploy since `values ` is also @_backDeploy
129
- testPrint ( handle : #dsohandle , values . description )
129
+ // Tests recursive @_backDeploy since `Array.print() ` is also @_backDeploy
130
+ _values . print ( )
130
131
}
131
132
132
133
@available ( BackDeploy 1 . 0 , * )
@@ -143,6 +144,12 @@ extension IntArray {
143
144
get { _values [ i] }
144
145
_modify { yield & _values[ i] }
145
146
}
147
+
148
+ @available ( BackDeploy 1 . 0 , * )
149
+ @_backDeploy ( before: BackDeploy 2.0 )
150
+ public var rawValues : [ Int ] {
151
+ _read { yield _values }
152
+ }
146
153
}
147
154
148
155
extension ReferenceIntArray {
@@ -153,8 +160,8 @@ extension ReferenceIntArray {
153
160
@available ( BackDeploy 1 . 0 , * )
154
161
@_backDeploy ( before: BackDeploy 2.0 )
155
162
public final func print( ) {
156
- // Tests recursive @_backDeploy since `values ` is also @_backDeploy
157
- testPrint ( handle : #dsohandle , values . description )
163
+ // Tests recursive @_backDeploy since `Array.print() ` is also @_backDeploy
164
+ _values . print ( )
158
165
}
159
166
160
167
@available ( BackDeploy 1 . 0 , * )
@@ -177,6 +184,20 @@ extension ReferenceIntArray {
177
184
get { _values [ i] }
178
185
_modify { yield & _values[ i] }
179
186
}
187
+
188
+ @available ( BackDeploy 1 . 0 , * )
189
+ @_backDeploy ( before: BackDeploy 2.0 )
190
+ public final var rawValues : [ Int ] {
191
+ _read { yield _values }
192
+ }
193
+ }
194
+
195
+ extension Array {
196
+ @available ( BackDeploy 1 . 0 , * )
197
+ @_backDeploy ( before: BackDeploy 2.0 )
198
+ public func print( ) {
199
+ testPrint ( handle: #dsohandle, description)
200
+ }
180
201
}
181
202
182
203
#endif // !STRIP_V2_APIS
0 commit comments