Skip to content

Commit d6165cd

Browse files
committed
[doc] mention loadUnaligned in URBP description
1 parent a07636b commit d6165cd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

stdlib/public/core/UnsafeRawBufferPointer.swift.gyb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030
/// a raw buffer are untyped operations. Accessing this collection's bytes
3131
/// does not bind the underlying memory to `UInt8`.
3232
///
33-
/// In addition to its collection interface, an `${Self}` instance also supports
34-
/// the following methods provided by `UnsafeMutableRawPointer`, including
35-
/// bounds checks in debug mode:
33+
/// In addition to its collection interface, an `${Self}`
34+
/// instance also supports the following methods provided by
35+
/// `UnsafeMutableRawPointer`, including bounds checks in debug mode:
3636
///
3737
/// - `load(fromByteOffset:as:)`
38+
/// - `loadUnaligned(fromByteOffset:as:)`
3839
/// - `storeBytes(of:toByteOffset:as:)`
3940
/// - `copyMemory(from:)`
4041
% else:
@@ -43,9 +44,10 @@
4344
/// of values held in that memory. Reading from memory through a raw buffer is
4445
/// an untyped operation.
4546
///
46-
/// In addition to its collection interface, an `${Self}` instance also supports
47-
/// the `load(fromByteOffset:as:)` method provided by `UnsafeRawPointer`,
48-
/// including bounds checks in debug mode.
47+
/// In addition to its collection interface, an `${Self}`
48+
/// instance also supports the `load(fromByteOffset:as:)`
49+
/// and `loadUnaligned(fromByteOffset:as:)` methods provided by
50+
/// `UnsafeRawPointer`, including bounds checks in debug mode.
4951
% end
5052
///
5153
/// To access the underlying memory through typed operations, the memory must

0 commit comments

Comments
 (0)