@@ -261,7 +261,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
261
261
// MARK: - Properties and Functions
262
262
263
263
/// The number of bytes in the data.
264
- public var count : Int {
264
+ public var count : Int {
265
265
get {
266
266
return _mapUnmanaged { $0. length }
267
267
}
@@ -521,7 +521,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
521
521
where ByteCollection. Iterator. Element == Data . Iterator . Element {
522
522
523
523
// Calculate this once, it may not be O(1)
524
- let replacementCount : Int = numericCast ( newElements. count)
524
+ let replacementCount : Int = numericCast ( newElements. count)
525
525
let currentCount = self . count
526
526
let subrangeCount = subrange. count
527
527
@@ -686,7 +686,7 @@ public struct Data : ReferenceConvertible, Equatable, Hashable, RandomAccessColl
686
686
//
687
687
688
688
@available ( * , unavailable, renamed: " count " )
689
- public var length : Int {
689
+ public var length : Int {
690
690
get { fatalError ( ) }
691
691
set { fatalError ( ) }
692
692
}
@@ -783,7 +783,7 @@ extension _SwiftNSData {
783
783
// -----
784
784
785
785
@objc ( length)
786
- var length : Int {
786
+ var length : Int {
787
787
get {
788
788
return _mapUnmanaged { $0. length }
789
789
}
0 commit comments