mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count"
This reverts commit r28248 while we discuss the change. Swift SVN r28291
This commit is contained in:
@@ -72,7 +72,7 @@ func nsEncode<CodeUnit>(
|
||||
inout _ buffer: [CodeUnit],
|
||||
inout _ used: Int
|
||||
) {
|
||||
_precondition(buffer.count() >= 4, "buffer is not large enough")
|
||||
_precondition(buffer.count >= 4, "buffer is not large enough")
|
||||
|
||||
let s = NSString(
|
||||
bytes: &c,
|
||||
@@ -81,7 +81,7 @@ func nsEncode<CodeUnit>(
|
||||
|
||||
s.getBytes(
|
||||
&buffer,
|
||||
maxLength: buffer.count(),
|
||||
maxLength: buffer.count,
|
||||
usedLength: &used,
|
||||
encoding: encoding,
|
||||
options: NSStringEncodingConversionOptions(0),
|
||||
|
||||
Reference in New Issue
Block a user