Revert "Remove {Dictionary,Set,UnsafeMutableBufferPointer,UnsafeBufferPointer}.count"

This reverts commit r28248 while we discuss the change.

Swift SVN r28291
This commit is contained in:
Dmitri Hrybenko
2015-05-07 21:45:28 +00:00
parent 4461d97a49
commit 10ab07ade5
21 changed files with 316 additions and 315 deletions

View File

@@ -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),