Skip to content

Commit fca05ce

Browse files
committed
---
yaml --- r: 349445 b: refs/heads/master-next c: c0098f9 h: refs/heads/master i: 349443: 3434e1a
1 parent ac1046f commit fca05ce

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: ae932e864c6f629ba1f29b42eb650d1549a7cde2
3+
refs/heads/master-next: c0098f9a9b6d8dae0a907520b990a135c5bb231b
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/stdlib/public/core/UnsafeRawBufferPointer.swift.gyb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ extension Unsafe${Mutable}RawBufferPointer {
375375
/// must be properly aligned for accessing `T`, and `source.count` must be a
376376
/// multiple of `MemoryLayout<T>.stride`.
377377
///
378+
/// The memory referenced by `source` may overlap with the memory referenced
379+
/// by this buffer.
380+
///
378381
/// After calling `copyMemory(from:)`, the first `source.count` bytes of
379382
/// memory referenced by this buffer are initialized to raw bytes. If the
380383
/// memory is bound to type `T`, then it contains values of type `T`.

branches/master-next/stdlib/public/core/UnsafeRawPointer.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -966,14 +966,17 @@ public struct UnsafeMutableRawPointer: _Pointer {
966966
/// must be properly aligned for accessing `T`, and `byteCount` must be a
967967
/// multiple of `MemoryLayout<T>.stride`.
968968
///
969-
/// After calling `copyMemory(from:byteCount:)`, the `byteCount` bytes of memory
970-
/// referenced by this pointer are initialized to raw bytes. If the memory
971-
/// is bound to type `T`, then it contains values of type `T`.
969+
/// The memory in the region `source..<(source + byteCount)` may overlap with
970+
/// the memory referenced by this pointer.
971+
///
972+
/// After calling `copyMemory(from:byteCount:)`, the `byteCount` bytes of
973+
/// memory referenced by this pointer are initialized to raw bytes. If the
974+
/// memory is bound to type `T`, then it contains values of type `T`.
972975
///
973976
/// - Parameters:
974977
/// - source: A pointer to the memory to copy bytes from. The memory in the
975-
/// region `source..<(source + byteCount)` must be initialized to a trivial
976-
/// type.
978+
/// region `source..<(source + byteCount)` must be initialized to a
979+
/// trivial type.
977980
/// - byteCount: The number of bytes to copy. `byteCount` must not be negative.
978981
@inlinable
979982
public func copyMemory(from source: UnsafeRawPointer, byteCount: Int) {

0 commit comments

Comments
 (0)