@@ -25,11 +25,11 @@ internal typealias _ArrayBridgeStorage
25
25
internal struct _ArrayBuffer < Element> : _ArrayBufferProtocol {
26
26
27
27
/// Create an empty buffer.
28
- public init ( ) {
28
+ internal init ( ) {
29
29
_storage = _ArrayBridgeStorage ( native: _emptyArrayStorage)
30
30
}
31
31
32
- public init ( nsArray: _NSArrayCore ) {
32
+ internal init ( nsArray: _NSArrayCore ) {
33
33
_sanityCheck ( _isClassOrObjCExistential ( Element . self) )
34
34
_storage = _ArrayBridgeStorage ( objC: nsArray)
35
35
}
@@ -126,7 +126,7 @@ extension _ArrayBuffer {
126
126
/// `_ContiguousArrayBuffer` that can be grown in-place to allow the self
127
127
/// buffer store minimumCapacity elements, returns that buffer.
128
128
/// Otherwise, returns `nil`.
129
- public mutating func requestUniqueMutableBackingBuffer( minimumCapacity: Int )
129
+ internal mutating func requestUniqueMutableBackingBuffer( minimumCapacity: Int )
130
130
-> NativeBuffer ? {
131
131
if _fastPath ( isUniquelyReferenced ( ) ) {
132
132
let b = _native
@@ -137,18 +137,18 @@ extension _ArrayBuffer {
137
137
return nil
138
138
}
139
139
140
- public mutating func isMutableAndUniquelyReferenced( ) -> Bool {
140
+ internal mutating func isMutableAndUniquelyReferenced( ) -> Bool {
141
141
return isUniquelyReferenced ( )
142
142
}
143
143
144
- public mutating func isMutableAndUniquelyReferencedOrPinned( ) -> Bool {
144
+ internal mutating func isMutableAndUniquelyReferencedOrPinned( ) -> Bool {
145
145
return isUniquelyReferencedOrPinned ( )
146
146
}
147
147
148
148
/// If this buffer is backed by a `_ContiguousArrayBuffer`
149
149
/// containing the same number of elements as `self`, return it.
150
150
/// Otherwise, return `nil`.
151
- public func requestNativeBuffer( ) -> NativeBuffer ? {
151
+ internal func requestNativeBuffer( ) -> NativeBuffer ? {
152
152
if !_isClassOrObjCExistential( Element . self) {
153
153
return _native
154
154
}
@@ -467,8 +467,8 @@ extension _ArrayBuffer {
467
467
public typealias Indices = CountableRange < Int >
468
468
469
469
//===--- private --------------------------------------------------------===//
470
- typealias Storage = _ContiguousArrayStorage < Element >
471
- public typealias NativeBuffer = _ContiguousArrayBuffer < Element >
470
+ internal typealias Storage = _ContiguousArrayStorage < Element >
471
+ internal typealias NativeBuffer = _ContiguousArrayBuffer < Element >
472
472
473
473
@_versioned
474
474
var _isNative : Bool {
0 commit comments